Skip to content
Snippets Groups Projects

Issue #2381857 - Add status

3 files
+ 21
2
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 12
0
@@ -19,6 +19,18 @@ function securepages_settings($form, &$form_state) {
'#disabled' => !securepages_test(),
'#description' => t('To start using secure pages this setting must be enabled. This setting will only be able to changed when the web server has been configured for SSL.<br />If this test has failed then go <a href="!url">here</a>', array('!url' => preg_replace(';^http://;i', 'https://', url($_GET['q'], array('absolute' => TRUE))))),
);
$form['securepages_code'] = array(
'#type' => 'select',
'#title' => t('Redirect HTTP Code'),
'#options' => array(
301 => t('301 Moved Permanently'),
302 => t('302 Found'),
),
'#default_value' => variable_get('securepages_code', 302),
'#description' => t('HTTP response status code of the URL redirect.'),
);
$form['securepages_switch'] = array(
'#type' => 'checkbox',
'#title' => t('Switch back to http pages when there are no matches'),
Loading