Skip to content

Instantly share code, notes, and snippets.

@venkatd
Created May 1, 2012 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save venkatd/2564689 to your computer and use it in GitHub Desktop.
Save venkatd/2564689 to your computer and use it in GitHub Desktop.
function mobile_redirect_form() {
$form = array();
$form['mobile_redirect_path'] = array(
'#type' => 'textfield',
'#title' => t('Path to mobile friendly page'),
'#size' => 80,
'#maxlength' => 255,
'#default_value' => variable_get('mobile_redirect_path', ''),
'#description' => t('The path to redirect to if the user is on a mobile browser.'),
);
return system_settings_form($form);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment