Advertisement
RandallKent

Untitled

Nov 4th, 2011
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. function maintenance_exempt_form_system_site_maintenance_mode_alter(&$form, &$form_state) {
  2.   $form['maintenance_exempt_ips'] = array(
  3.     '#type' => 'textarea',
  4.     '#title' => t('Exempt IPs'),
  5.     '#default_value' => variable_get('maintenance_exempt_ips'),
  6.     '#description' => t('Enter a newline-separated list of IP addresses who should be exempt from maintenance mode. <a href="@url">CIDR Notation</a> is allowed.', array('@url' => 'http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing'))
  7.   );
  8. }
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement