You are here

function menu_patterns in Patterns 7

Same name and namespace in other branches
  1. 5 components/menu.inc \menu_patterns()
  2. 6.2 components/menu.inc \menu_patterns()
  3. 6 components/menu.inc \menu_patterns()
  4. 7.2 patterns_components/components/menu.inc \menu_patterns()
1 call to menu_patterns()
menu_patterns_callbacks in patterns_components/components/menu.inc

File

patterns_components/components/menu.inc, line 7

Code

function menu_patterns() {
  $files = array(
    'modules/menu/menu.admin.inc',
  );
  $actions['menu'] = array(
    PATTERNS_INFO => t('Create/Modify/Delete menu'),
    PATTERNS_CREATE => array(
      'menu_edit_menu',
    ),
    PATTERNS_MODIFY => array(
      'menu_edit_menu',
    ),
    PATTERNS_DELETE => array(
      'menu_delete_menu_confirm',
    ),
    PATTERNS_FILES => $files,
    PATTERNS_EXPORT => array(
      PATTERNS_EXPORT_ALL => 'menu_patterns_export_all_menu',
    ),
  );
  $actions['menu_item'] = array(
    PATTERNS_INFO => t('Create/Modify/Delete menu item'),
    PATTERNS_CREATE => array(
      'menu_edit_item',
    ),
    PATTERNS_MODIFY => array(
      'menu_edit_item',
    ),
    PATTERNS_DELETE => array(
      'menu_item_delete_form',
    ),
    PATTERNS_FILES => $files,
    PATTERNS_EXPORT => array(
      PATTERNS_EXPORT_ALL => 'menu_patterns_export_all_menu_item',
    ),
  );
  return $actions;
}