function hook_hansel_switch_types in Hansel breadcrumbs 7
Same name and namespace in other branches
- 8 hansel.hooks.inc \hook_hansel_switch_types()
Define switch types.
This hook is invoked by Hansel to get the available switch types. Modules may use this to add switch types to Hansel.
See also
3 functions implement hook_hansel_switch_types()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- hansel_domain_hansel_switch_types in domain/
hansel_domain.module - Implements hook_hansel_switch_types().
- hansel_hansel_switch_types in ./
hansel.module - Implements hook_hansel_switch_types().
- hansel_taxonomy_hansel_switch_types in taxonomy/
hansel_taxonomy.module - Implements hook_hansel_switch_types().
1 invocation of hook_hansel_switch_types()
- _hansel_get_switch_types in ./
hansel.module - Get list of all available switch types.
File
- ./
hansel.hooks.inc, line 17 - Hansel hook documentation
Code
function hook_hansel_switch_types() {
return array(
'url argument' => array(
'compare' => 'hansel_switch_url_argument_compare',
'info' => 'hansel_switch_url_argument_info',
'config form' => 'hansel_switch_url_argument_config_form',
'file' => 'hansel.switches.inc',
),
'node id' => array(
'compare' => 'hansel_switch_node_id_compare',
'file' => 'hansel.switches.inc',
),
'node type' => array(
'compare' => 'hansel_switch_node_type_compare',
'file' => 'hansel.switches.inc',
),
);
}