You are here

function mandrill_template_map_form_validate in Mandrill 7

Same name and namespace in other branches
  1. 7.2 modules/mandrill_template/mandrill_template.admin.inc \mandrill_template_map_form_validate()

Validate handler for mandrill_template_map().

File

modules/mandrill_template/mandrill_template.admin.inc, line 152
Administrative forms for Mandrill Template module.

Code

function mandrill_template_map_form_validate($form, &$form_state) {
  $values = $form_state['values'];

  // Test to see if mandrill_template_map value will exceed row length of 255
  // characters
  if (strlen($values['mailsystem_key']) > 255) {
    form_set_error('mailsystem_key', t('The length of the mailsytem_key name is too long.'));
  }
}