function global_filter_forms in Views Global Filter 6
Same name and namespace in other branches
- 8 global_filter.widgets.inc \global_filter_forms()
- 7 global_filter.widgets.inc \global_filter_forms()
Implements hook_forms();
Called as a result of the fact that there are no hard-coded handlers for the unique form_id's ('global_filter_1', 'global_filter_2'...), generated in global_filter_block_info(). Here we map all of these form_id's back to the same 'global_filter_form'.
File
- ./
global_filter.module, line 132 - global_filter.module
Code
function global_filter_forms($form_id, $args) {
if (strpos($form_id, 'global_filter') === 0) {
$form = array(
$form_id => array(
'callback' => 'global_filter_form',
'callback arguments' => array(
$filter = $form_id,
),
),
);
return $form;
}
}