You are here

function delta_ui_menu in Delta 7.2

Same name and namespace in other branches
  1. 7.3 delta_ui/delta_ui.module \delta_ui_menu()

Implementation of hook_menu().

File

./delta_ui.module, line 21

Code

function delta_ui_menu() {
  $items['admin/appearance/delta'] = array(
    'title' => 'Delta',
    'description' => 'Manage your delta settings and rules, import and export delta settings for each theme',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'delta_theme_settings_config',
    ),
    'access arguments' => array(
      'administer delta',
    ),
    'file' => 'delta_ui.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/appearance/delta/settings'] = array(
    'title' => 'Settings',
    'description' => 'Manage Delta settings.',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'parent' => 'admin/appearance/delta',
    'weight' => -10,
  );
  $items['admin/appearance/delta/layouts'] = array(
    'title' => 'Layouts',
    'description' => 'Manage theme setting layouts.',
    'page callback' => 'delta_layouts_view',
    'access arguments' => array(
      'administer delta',
    ),
    'file' => 'delta_ui.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'parent' => 'admin/appearance/delta',
  );
  $items['admin/appearance/delta/layouts/list'] = array(
    'title' => 'List',
    'description' => 'Manage your theme setting layouts.',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'parent' => 'admin/appearance/delta/layouts',
    'weight' => -1,
  );
  $items['admin/appearance/delta/layouts/add'] = array(
    'title' => 'Add Template',
    'description' => 'Create a new theme setting layout.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'delta_layout_edit',
    ),
    'access arguments' => array(
      'administer delta',
    ),
    'file' => 'delta_ui.admin.inc',
    'type' => MENU_LOCAL_ACTION,
    'parent' => 'admin/appearance/delta/layouts',
  );
  $items['admin/appearance/delta/layouts/edit/%'] = array(
    'title' => 'Edit',
    'description' => 'Edit a Theme Settings Layout.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'delta_layout_edit',
      5,
    ),
    'access arguments' => array(
      'administer delta',
    ),
    'file' => 'delta_ui.admin.inc',
    'type' => MENU_NORMAL_ITEM,
    'tab_parent' => 'admin/appearance/delta/layouts',
  );
  $items['admin/appearance/delta/layouts/configure/%'] = array(
    'title' => 'Settings',
    'description' => 'Override settings for Layout.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'delta_layout_configure',
      5,
    ),
    'access arguments' => array(
      'administer delta',
    ),
    'file' => 'delta_ui.admin.inc',
    'type' => MENU_NORMAL_ITEM,
    'tab_parent' => 'admin/appearance/delta/layouts',
  );
  $items['admin/appearance/delta/layouts/delete/%'] = array(
    'title' => 'Delete',
    'description' => 'Delete Theme Settings Layout.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'delta_layout_delete',
      5,
    ),
    'access arguments' => array(
      'administer delta',
    ),
    'file' => 'delta_ui.admin.inc',
    'type' => MENU_NORMAL_ITEM,
    'tab_parent' => 'admin/appearance/delta/layouts',
  );
  return $items;
}