You are here

function double_field_format_validate in Double Field 7.2

Element validate callback.

1 string reference to 'double_field_format_validate'
double_field_field_formatter_settings_form in ./double_field.module
Implements hook_field_formatter_settings_form().

File

./double_field.module, line 962
Defines "Double field" field type.

Code

function double_field_format_validate($element, &$form_state, $form) {
  if ($element['#value'] == 'full_html') {
    drupal_set_message(t('Using the "Full HTML" format allows HTML to be posted unfiltered. This could represent a severe security risk.<br/>See !link for further information.', array(
      '!link' => '<a href="http://drupal.org/documentation/modules/filter">http://drupal.org/documentation/modules/filter</a>',
    )), 'warning', FALSE);
  }
}