You are here

function gridbuilder_menu in Grid builder 8

Implements hook_menu().

File

./gridbuilder.module, line 23
Simple grid builder tool.

Code

function gridbuilder_menu() {
  $items = array();
  $items['admin/structure/grids'] = array(
    'title' => 'Grids',
    'description' => 'Manage list of grids which can be used with layouts.',
    'page callback' => 'gridbuilder_page_list',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer gridbuilder',
    ),
    'file' => 'gridbuilder.admin.inc',
  );
  $items['admin/structure/grids/add'] = array(
    'title' => 'Add grid',
    'page callback' => 'gridbuilder_page_add',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer gridbuilder',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'gridbuilder.admin.inc',
  );
  $items['admin/structure/grids/grid/%gridbuilder/edit'] = array(
    'title' => 'Edit grid',
    'page callback' => 'gridbuilder_page_edit',
    'page arguments' => array(
      4,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer gridbuilder',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'gridbuilder.admin.inc',
  );
  $items['admin/structure/grids/grid/%gridbuilder/delete'] = array(
    'title' => 'Delete',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'gridbuilder_delete_confirm',
      4,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer gridbuilder',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'gridbuilder.admin.inc',
  );
  return $items;
}