function mmeu_form_system_site_maintenance_mode_alter in Maintenance Mode Exclude Urls 7
Implements hook_form_FORM_ID_alter() for system_site_maintenance_mode().
File
- ./
mmeu.module, line 11 - Module file for mmeu module.
Code
function mmeu_form_system_site_maintenance_mode_alter(&$form, &$form_state) {
$form['mmeu_urls'] = array(
'#type' => 'textarea',
'#title' => t('Exclude Urls'),
'#description' => t("Enter pages to be shown to visitors in maintenance mode. Enter one page per line as Drupal paths. The * character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array(
'%blog' => 'blog',
'%blog-wildcard' => 'blog/*',
'%front' => '<front>',
)),
'#default_value' => variable_get('mmeu_urls', ''),
);
}