You are here

function hook_hansel_action_types in Hansel breadcrumbs 7

Same name and namespace in other branches
  1. 8 hansel.hooks.inc \hook_hansel_action_types()

Define action types.

This hook is onvoked by Hansel to get the available action types. Modules may use this to add action types to Hansel.

See also

_hansel_get_action_types()

5 functions implement hook_hansel_action_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_action_types in domain/hansel_domain.module
Implements hook_hansel_action_types().
hansel_forum_hansel_action_types in forum/hansel_forum.module
Implements hook_hansel_action_types().
hansel_hansel_action_types in ./hansel.module
Implements hook_hansel_action_types().
hansel_og_hansel_action_types in og/hansel_og.module
Implements hook_hansel_action_types().
hansel_taxonomy_hansel_action_types in taxonomy/hansel_taxonomy.module
Implements hook_hansel_action_types().
1 invocation of hook_hansel_action_types()
_hansel_get_action_types in ./hansel.module
Get list of all available breadcrumb action types.

File

./hansel.hooks.inc, line 45
Hansel hook documentation

Code

function hook_hansel_action_types() {
  return array(
    'add single link' => array(
      'get crumbs' => 'hansel_action_add_single_link_get_crumbs',
      'info' => 'hansel_action_add_single_link_info',
      'config form' => 'hansel_action_add_single_link_config_form',
      'file' => 'hansel.actions.inc',
    ),
    'add link to node' => array(
      'get crumbs' => 'hansel_action_add_link_to_node_get_crumbs',
      'file' => 'hansel.actions.inc',
    ),
    'add link to user' => array(
      'get crumbs' => 'hansel_action_add_link_to_user_get_crumbs',
      'config form' => 'hansel_action_add_link_to_user_config_form',
      'file' => 'hansel.actions.inc',
    ),
  );
}