Example #1
0
 /**
  * Method to allow derived classes to preprocess the form.
  *
  * @param   JForm   $form   A JForm object.
  * @param   mixed   $data   The data expected for the form.
  * @param   string  $group  The name of the plugin group to import (defaults to "content").
  *
  * @return  void
  *
  * @throws  Exception if there is an error in the form event.
  */
 protected function preprocessForm(JForm $form, $data, $group = 'content')
 {
     if (JComponentHelper::getParams('com_users')->get('frontend_userparams')) {
         $form->loadFile('frontend', false);
         if (JFactory::getUser()->authorise('core.login.admin')) {
             $form->loadFile('frontend_admin', false);
         }
     }
     parent::preprocessForm($form, $data, $group);
 }