function global_filter_rules_action_info in Views Global Filter 8
Same name and namespace in other branches
- 7 global_filter.rules.inc \global_filter_rules_action_info()
Implements hook_rules_action_info().
File
- ./
global_filter.rules.inc, line 11 - Views Global Filter Rules integration.
Code
function global_filter_rules_action_info() {
$actions = array(
// Register method to set the Global Filter as a Rules action.
'global_filter_action_set_filter' => array(
'label' => t('Set a Views Global Filter'),
'group' => t('Views Global Filter'),
'parameter' => array(
'global_filter_name' => array(
'type' => 'text',
'label' => t('Global Filter name'),
'options list' => 'global_filter_active_filter_names_list',
'save' => FALSE,
),
'global_filter_value' => array(
'type' => 'text',
'label' => t('Global Filter value'),
'save' => FALSE,
),
),
),
);
return $actions;
}