function sms_actions_edit_command_form_validate in SMS Framework 6.2
Same name and namespace in other branches
- 6 modules/sms_actions/sms_actions.module \sms_actions_edit_command_form_validate()
- 7 modules/sms_actions/sms_actions.module \sms_actions_edit_command_form_validate()
File
- modules/
sms_actions/ sms_actions.module, line 413 - Provides a "Send SMS" action and the ability to define custom triggers for incoming messages.
Code
function sms_actions_edit_command_form_validate($form, &$form_state) {
if (!preg_match('!^[a-z0-9\\-]+$!', $form_state['values']['discriminator'])) {
form_set_error('discriminator', t('The discriminator may only consist of lowercase letters, dashes, and numbers.'));
}
}