function activity_views_handler_argument_activity_user::options_form in Activity 7
Build the options form.
Overrides views_handler_argument_numeric::options_form
File
- views/
views_handler_arguments.inc, line 14 - Provide argument handlers for Activity module
Class
- activity_views_handler_argument_activity_user
- @file Provide argument handlers for Activity module
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
foreach (activity_cache_get('realms') as $realm => $information) {
$options[$realm] = t($information['name']);
}
$form['realms'] = array(
'#title' => t('Realms'),
'#type' => 'checkboxes',
'#description' => t('Choose the realms to filter the Activity rows'),
'#options' => $options,
'#required' => TRUE,
'#default_value' => $this->options['realms'],
);
}