function entity_view_mode_menu in Entity view modes 7
Implements hook_menu().
File
- ./
entity_view_mode.module, line 77
Code
function entity_view_mode_menu() {
$items['admin/config/system/entity-view-modes'] = array(
'title' => 'Entity view modes',
'description' => 'Create new custom view modes for content.',
'page callback' => 'entity_view_mode_list',
'access arguments' => array(
'administer entity view modes',
),
'file' => 'entity_view_mode.admin.inc',
);
$items['admin/config/system/entity-view-modes/add/%'] = array(
'title' => 'Add view mode',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'entity_view_mode_edit_form',
5,
),
'access arguments' => array(
'administer entity view modes',
),
'file' => 'entity_view_mode.admin.inc',
);
$items['admin/config/system/entity-view-modes/edit/%/%'] = array(
'title' => 'Edit view mode',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'entity_view_mode_edit_form',
5,
6,
),
'access arguments' => array(
'administer entity view modes',
),
'file' => 'entity_view_mode.admin.inc',
);
$items['admin/config/system/entity-view-modes/delete/%/%'] = array(
'title' => 'Edit view mode',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'entity_view_mode_delete_form',
5,
6,
),
'access arguments' => array(
'administer entity view modes',
),
'file' => 'entity_view_mode.admin.inc',
);
return $items;
}