You are here

function activity_views_handler_filter_access::options_form in Activity 6.2

Same name and namespace in other branches
  1. 7 views/views_handler_filters.inc \activity_views_handler_filter_access::options_form()

Override the options_form().

File

views/activity_views_handler_filter_access.inc, line 35
generic handler that provides access control on where

Class

activity_views_handler_filter_access
@file generic handler that provides access control on where

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $info = activity_get_module_info($this->definition['module']);
  $realms = $info->realms;
  $options = array();
  foreach ($realms as $realm => $title) {
    $options[$realm] = t($title);
  }
  $form['realms'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Specific Relationships'),
    '#options' => $options,
    '#default_value' => $this->options['realms'],
  );
}