function media_library_form_filter_format_add_form_alter
Implements hook_form_FORM_ID_alter().
File
-
core/
modules/ media_library/ media_library.module, line 492
Code
function media_library_form_filter_format_add_form_alter(array &$form, FormStateInterface $form_state, $form_id) {
// Add an additional validate callback so so we can ensure the media_embed
// filter is enabled when the DrupalMediaLibrary button is enabled.
$form['#validate'][] = 'media_library_filter_format_edit_form_validate';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.