You are here

function message_admin_text_copy_validate in Message 7

Validate callback for the copy texts form.

File

includes/message.admin.inc, line 192
Message type editing UI.

Code

function message_admin_text_copy_validate($form, $form_state) {
  if (in_array($form_state['values']['origin'], $form_state['values']['destinations'])) {
    form_set_error('destinations', t('Cannot copy language values into itself.'));
  }
}