You are here

function responsive_preview_menu in Responsive Theme Preview 7

Implements hook_menu().

File

./responsive_preview.module, line 27
Provides a component that previews the a page in various device dimensions.

Code

function responsive_preview_menu() {
  $items['admin/config/content/responsive-preview'] = array(
    'title' => 'Responsive preview',
    'description' => "Configure responsive preview device definitions.",
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'responsive_preview_admin_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'responsive_preview.admin.inc',
  );
  $items['admin/config/content/responsive-preview/add'] = array(
    'title' => 'Add device',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'responsive_preview_device_add_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'responsive_preview.admin.inc',
  );
  $items['admin/config/content/responsive-preview/%'] = array(
    'title' => 'Edit',
    'title callback' => 'responsive_preview_title_callback',
    'title arguments' => array(
      4,
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'responsive_preview_device_edit_form',
      4,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'responsive_preview.admin.inc',
  );
  $items['admin/config/content/responsive-preview/%/edit'] = array(
    'title' => 'Edit',
    'title callback' => 'responsive_preview_title_callback',
    'title arguments' => array(
      4,
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/content/responsive-preview/%/delete'] = array(
    'title' => 'Delete',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'responsive_preview_device_delete_form',
      4,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'responsive_preview.admin.inc',
  );
  return $items;
}