Extrafields: Difference between revisions

Jump to navigation Jump to search
Line 57: Line 57:


==Inside view page to display extrafields :==
==Inside view page to display extrafields :==
<source lang="php">
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$act,$action);    // Note that $action and $object may have been modified by hook
if (empty($reshook) && ! empty($extrafields->attribute_label))
{
      print ''$object''->showOptionals($extrafields);
}
</source>
==Inside New page to display extrafields :==
<source lang="php">
<source lang="php">
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$act,$action);    // Note that $action and $object may have been modified by hook
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$act,$action);    // Note that $action and $object may have been modified by hook
Bureaucrats, emailconfirmed, Administrators
825

edits

Navigation menu