You are here

function mobile_tools_configuration_form_validate in Mobile Tools 6

Same name and namespace in other branches
  1. 6.3 mobile_tools.admin.inc \mobile_tools_configuration_form_validate()
  2. 6.2 mobile_tools.admin.inc \mobile_tools_configuration_form_validate()
  3. 7.2 mobile_tools.admin.inc \mobile_tools_configuration_form_validate()

Validation of the system settings form

File

./mobile_tools.admin.inc, line 158
Adminstrative pages for Mobile Tools

Code

function mobile_tools_configuration_form_validate($form, &$form_state) {
  $form_state['values']['mobile_tools_mobile_url'] = preg_replace('{/$}', '', $form_state['values']['mobile_tools_mobile_url']);
  $form_state['values']['mobile_tools_desktop_url'] = preg_replace('{/$}', '', $form_state['values']['mobile_tools_desktop_url']);
}