You are here

function rlayout_menu in Layout 8

Implements hook_menu().

File

./rlayout.module, line 13
Responsive layout builder tool for Panels.

Code

function rlayout_menu() {
  $items = array();
  $items['admin/structure/layouts'] = array(
    'title' => 'Layouts',
    'description' => 'Manage list of layouts.',
    'page callback' => 'rlayout_page_list',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer layouts',
    ),
    'file' => 'rlayout.admin.inc',
  );
  $items['admin/structure/layouts/add'] = array(
    'title' => 'Add layout',
    'page callback' => 'rlayout_page_add',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer layouts',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'rlayout.admin.inc',
  );
  $items['admin/structure/layouts/manage/%rlayout'] = array(
    'title' => 'Edit layout',
    'page callback' => 'rlayout_page_edit',
    'page arguments' => array(
      4,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer layouts',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'rlayout.admin.inc',
  );
  $items['admin/structure/layouts/manage/%rlayout/edit'] = array(
    'title' => 'Edit',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/structure/layouts/manage/%rlayout/delete'] = array(
    'title' => 'Delete',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'rlayout_delete_confirm',
      4,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer layouts',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'rlayout.admin.inc',
  );
  return $items;
}