function fe_paths_menu in File Entity Paths 7.2
Implements hook_menu().
File
- ./
fe_paths.module, line 33 - Contains functions for the File Entity Paths module.
Code
function fe_paths_menu() {
$items['admin/config/media/fe-paths'] = array(
'title' => 'File Entity Paths settings',
'description' => 'Configure custom paths for file entities',
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'administer_fe_paths',
),
'page callback' => 'fe_paths_global_page',
'file' => 'fe_paths.admin.inc',
);
$items['admin/config/media/fe-paths/global'] = array(
'title' => 'Global',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -1,
);
$items['admin/config/media/fe-paths/add'] = array(
'title' => 'Add config',
'type' => MENU_LOCAL_TASK,
'access arguments' => array(
'administer_fe_paths',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fe_paths_entity_edit_form',
),
'file' => 'fe_paths.admin.inc',
);
$items['admin/config/media/fe-paths/%fe_paths_config/edit'] = array(
'title' => 'Edit configuration',
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'administer_fe_paths',
),
'page callback' => 'fe_paths_config_edit_page',
'page arguments' => array(
4,
),
'file' => 'fe_paths.admin.inc',
);
$items['admin/config/media/fe-paths/%fe_paths_config/delete'] = array(
'title' => 'Edit configuration',
'type' => MENU_NORMAL_ITEM,
'access arguments' => array(
'administer_fe_paths',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fe_paths_config_delete_confirm',
4,
),
'file' => 'fe_paths.admin.inc',
);
return $items;
}