function aes_menu in AES encryption 7
Same name and namespace in other branches
- 5 aes.module \aes_menu()
- 6 aes.module \aes_menu()
Implements hook_menu().
File
- ./
aes.module, line 17 - Main file of the AES encryption module.
Code
function aes_menu() {
$items = array();
$items['admin/config/system/aes'] = array(
'title' => 'AES settings',
'description' => 'Configure the AES encryption module.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'aes_config',
),
'access arguments' => array(
'administer aes',
),
'file' => 'aes.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['user/%/password'] = array(
'title' => 'View password',
'page callback' => 'aes_get_password',
'page arguments' => array(
1,
TRUE,
),
'access callback' => 'aes_show_password_page',
'access arguments' => array(
'view passwords',
1,
),
'type' => MENU_LOCAL_TASK,
);
$items['aes_get_password_callback/%'] = array(
'title' => 'User\'s password',
'page callback' => 'aes_ajax_callback',
'page arguments' => array(
1,
),
'access arguments' => array(
'view passwords',
),
'type' => MENU_CALLBACK,
);
return $items;
}