function encrypt_menu in Encrypt 7.3
Same name and namespace in other branches
- 6 encrypt.module \encrypt_menu()
- 7 encrypt.module \encrypt_menu()
- 7.2 encrypt.module \encrypt_menu()
Implements hook_menu().
File
- ./
encrypt.module, line 43 - Main Encrypt Drupal File
Code
function encrypt_menu() {
$items = array();
$items[ENCRYPT_MENU_PATH] = array(
'title' => 'Encrypt',
'description' => 'Manage encryption configurations.',
'page callback' => 'encrypt_configs_list',
'access arguments' => array(
'administer encrypt',
),
'file' => 'includes/encrypt.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items[ENCRYPT_MENU_PATH . '/list'] = array(
'title' => 'List configurations',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items[ENCRYPT_MENU_PATH . '/add'] = array(
'title' => 'Add configuration',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'encrypt_config_form',
),
'access arguments' => array(
'administer encrypt',
),
'file' => 'includes/encrypt.admin.inc',
'type' => MENU_LOCAL_ACTION,
);
$items[ENCRYPT_MENU_PATH . '/edit/%encrypt_config'] = array(
'title' => 'Edit encryption configuration',
'title callback' => 'encrypt_config_edit_title',
'title arguments' => array(
5,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'encrypt_config_form',
5,
),
'access arguments' => array(
'administer encrypt',
),
'file' => 'includes/encrypt.admin.inc',
);
$items[ENCRYPT_MENU_PATH . '/default/%encrypt_config'] = array(
'page callback' => 'encrypt_config_make_default',
'page arguments' => array(
5,
),
'access arguments' => array(
'administer encrypt',
),
'file' => 'includes/encrypt.admin.inc',
);
$items[ENCRYPT_MENU_PATH . '/delete/%encrypt_config'] = array(
'title' => 'Delete encryption configuration',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'encrypt_config_delete_confirm',
5,
),
'access arguments' => array(
'administer encrypt',
),
'file' => 'includes/encrypt.admin.inc',
);
return $items;
}