You are here

function activity_views_handler_filter_access::option_definition in Activity 6.2

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

Override the options_definition().

File

views/activity_views_handler_filter_access.inc, line 19
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 option_definition() {
  $options = parent::option_definition();
  $info = activity_get_module_info($this->definition['module']);
  $realms = $info->realms;
  foreach ($realms as $realm => $name) {
    $default_realms[$realm] = $realm;
  }
  $options['realms'] = array(
    'default' => $default_realms,
  );
  return $options;
}