public function UserActivityActionHandler::optionForm in Activity 7
Display an FAPI form.
Parameters
&$form: An FAPI form array.
$form_state: The form_state from FAPI.
Overrides ActivityActionHandler::optionForm
File
- ./
activity_action_handlers.inc, line 845
Class
- UserActivityActionHandler
- Activity Action Handler for the user triggers.
Code
public function optionForm(&$form, $form_state) {
parent::optionForm($form, $form_state);
$roles = user_roles();
$form['roles'] = array(
'#type' => 'checkboxes',
'#title' => t('Roles'),
'#options' => $roles,
'#default_value' => $this->options['roles'],
);
}