Implements hook_menu().
function picture_menu() {
$items = array();
$items['admin/config/media/picturemapping'] = array(
'title' => 'Picture Mappings',
'description' => 'Manage picture mappings',
'access arguments' => array(
'administer pictures',
),
'weight' => 10,
'page callback' => 'picture_mapping_page',
'file' => 'picture_mapping.admin.inc',
);
$items['admin/config/media/picturemapping/add'] = array(
'title' => 'Add picture mapping',
'page callback' => 'picture_mapping_page_add',
'access callback' => 'user_access',
'access arguments' => array(
'administer pictures',
),
'type' => MENU_LOCAL_ACTION,
'file' => 'picture_mapping.admin.inc',
);
$items['admin/config/media/picturemapping/%picture_mapping/edit'] = array(
'title' => 'Edit picture mapping',
'page callback' => 'picture_mapping_page_edit',
'page arguments' => array(
4,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer pictures',
),
'file' => 'picture_mapping.admin.inc',
);
$items['admin/config/media/picturemapping/%picture_mapping/duplicate'] = array(
'title' => 'Duplicate picture mapping',
'page callback' => 'picture_mapping_page_duplicate',
'page arguments' => array(
4,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer pictures',
),
'file' => 'picture_mapping.admin.inc',
);
$items['admin/config/media/picturemapping/%picture_mapping/delete'] = array(
'title' => 'Delete',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'picture_mapping_action_confirm',
4,
5,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer pictures',
),
'file' => 'picture_mapping.admin.inc',
);
return $items;
}