Exemplo n.º 1
0
 function password($id)
 {
     $fields = array_values(array_filter($this->{$this->model}->get_form_fields(), create_function('$a', 'return (isset($a["type"]) && ("password" == $a["type"])) ? TRUE : FALSE;')));
     $this->data['fields'] = $fields;
     if (!$this->hc_form->is_set_default('password')) {
         $this->hc_form->set_default('password', '');
     }
     return parent::edit($id, 'password');
 }
Exemplo n.º 2
0
 function edit($id, $view = 'edit')
 {
     $this->data['fixed'] = array('user');
     return parent::edit($id, $view);
 }