function path_redirect_settings in Path redirect 5
1 string reference to 'path_redirect_settings'
- path_redirect_menu in ./
path_redirect.module - Implementation of hook_menu
File
- ./
path_redirect.module, line 432
Code
function path_redirect_settings() {
$form['path_redirect_nodeapi_enabled'] = array(
'#type' => 'radios',
'#title' => t('Enable on edit pages'),
'#default_value' => variable_get('path_redirect_nodeapi_enabled', 0),
'#options' => array(
t('Disabled'),
t('Enabled'),
),
'#description' => t('Enable management of URL redirects directly on content editing pages.'),
);
$form['path_redirect_redirect_warning'] = array(
'#type' => 'radios',
'#title' => t('Warn on redirect'),
'#default_value' => variable_get('path_redirect_redirect_warning', 0),
'#options' => array(
t('Disabled'),
t('Enabled'),
),
'#description' => t('Display a warning message to users when a redirect takes place.'),
);
$form['path_redirect_allow_bypass'] = array(
'#type' => 'radios',
'#title' => t('Allow bypassing'),
'#default_value' => variable_get('path_redirect_allow_bypass', 0),
'#options' => array(
t('Disabled'),
t('Enabled'),
),
'#description' => t('Allow users to bypass redirects by appending <code>?redirect=no</code> to the URL.'),
);
return system_settings_form($form);
}