You are here

function media_form_wysiwyg_profile_form_alter in D7 Media 7

Implements hook_form_FORM_ID_alter().

File

./media.module, line 543
Media API

Code

function media_form_wysiwyg_profile_form_alter(&$form, &$form_state) {

  // Add warnings if the media filter is disabled for the WYSIWYG's text format.
  $form['buttons']['drupal']['media']['#element_validate'][] = 'media_wysiwyg_button_element_validate';
  $form['buttons']['drupal']['media']['#after_build'][] = 'media_wysiwyg_button_element_validate';
  form_load_include($form_state, 'inc', 'media', 'wysiwyg_plugins/media');
}