add_fun
Posted: Fri Mar 26, 2021 8:37 pm
The add_fun callback does not seem to function at all. edit_fun works, but not add_fun. Am I missing something?
- Code: Select all
public function genPassword($col,$val,$row)
{
return 'pass';
}
...
$tableColumns['password'] = array(
'display_text' => 'Password',
'on_edit_fun' => array(&$this,'encodePassword'),
'add_fun' => array(&$this,'genPassword'),
'edit_fun' => array(&$this,'removePassword'),
'perms' => 'ECAXQSHOF'
);