You are here

function menu_features_api in Features 7.2

Same name and namespace in other branches
  1. 6 includes/features.menu.inc \menu_features_api()
  2. 7 includes/features.menu.inc \menu_features_api()

Implements hook_features_api().

File

includes/features.menu.inc, line 11
Features integration for 'menu' module.

Code

function menu_features_api() {
  return array(
    'menu_custom' => array(
      'name' => t('Menus'),
      /* @see \hook_menu_default_menu_custom() */

      /* @see \hook_menu_default_menu_custom_alter() */
      'default_hook' => 'menu_default_menu_custom',
      'feature_source' => TRUE,
      'default_file' => FEATURES_DEFAULTS_INCLUDED,
    ),
    'menu_links' => array(
      'name' => t('Menu links'),
      /* @see \hook_menu_default_menu_links() */

      /* @see \hook_menu_default_menu_links_alter() */
      'default_hook' => 'menu_default_menu_links',
      'feature_source' => TRUE,
      'default_file' => FEATURES_DEFAULTS_INCLUDED,
    ),
    // DEPRECATED.
    'menu' => array(
      'name' => t('Menu items'),
      /* @see \hook_menu_default_items() */

      /* @see \hook_menu_default_items_alter() */
      'default_hook' => 'menu_default_items',
      'default_file' => FEATURES_DEFAULTS_INCLUDED,
      'feature_source' => FALSE,
    ),
  );
}