Exemplo n.º 1
0
 /**
  * @todo Make this a POST only
  */
 public function action_toggle($id, $field)
 {
     $result = parent::action_toggle($id, $field, false);
     if ($result && $result->array['active']) {
         if (call_user_func(array($result->array['name'], 'install'))) {
         } else {
             Backend::addError('Could not install component');
         }
     }
     return $result;
 }