function media_form_filter_format_add_form_alter
Same name in other branches
- 8.9.x core/modules/media/media.module \media_form_filter_format_add_form_alter()
- 10 core/modules/media/media.module \media_form_filter_format_add_form_alter()
- 11.x core/modules/media/media.module \media_form_filter_format_add_form_alter()
Implements hook_form_FORM_ID_alter().
File
-
core/
modules/ media/ media.module, line 384
Code
function media_form_filter_format_add_form_alter(array &$form, FormStateInterface $form_state, $form_id) {
// Add an additional validate callback so we can ensure the order of filters
// is correct.
$form['#validate'][] = 'media_filter_format_edit_form_validate';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.