function access_unpublished_admin in Access unpublished 6
Create administration page.
1 string reference to 'access_unpublished_admin'
- access_unpublished_menu in ./
access_unpublished.module - Implements hook_menu().
File
- ./
access_unpublished.module, line 93 - This module is used to allow access to unpublished nodes
Code
function access_unpublished_admin() {
$form = array();
$form['access_unpublished_privatekey'] = array(
'#type' => 'textfield',
'#size' => '30',
'#title' => t('Private key'),
'#description' => t('The private key is used for creating the hash value, which can be used to allow access to unpublished nodes.'),
'#default_value' => variable_get('access_unpublished_privatekey', NULL),
'#required' => TRUE,
);
$form['access_unpublished_querystring'] = array(
'#type' => 'textfield',
'#size' => '10',
'#title' => t('Query string'),
'#description' => t('The label used in the URL to identify the hash value.'),
'#default_value' => _access_unpublished_get_querystring(),
'#required' => TRUE,
);
return system_settings_form($form);
}