function _jammer_messages_settings_submit in Jammer 6
Same name and namespace in other branches
- 7 jammer_messages.module \_jammer_messages_settings_submit()
File
- ./
jammer_messages.module, line 104 - Filter status messages set by drupal_set_message().
Code
function _jammer_messages_settings_submit($form, &$form_state) {
$form_values = $form_state['values'];
if ($form_values['jammer_messages_string'] == '') {
drupal_set_message(t('Empty strings are not an accepted match string.'));
return;
}
$message = new stdClass();
$message->message_string = $form_values['jammer_messages_string'];
drupal_write_record('jammer_messages', $message);
}