You are here

function composed_field_format_validate in Composed Field 7

Element validate callback.

1 string reference to 'composed_field_format_validate'
composed_field_field_formatter_settings_form in ./composed_field.module
Implements hook_field_formatter_settings_form().

File

./composed_field.module, line 860
Defines composed field type.

Code

function composed_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);
  }
}