function ckeditor_form_filter_format_add_form_alter

Implements hook_form_FORM_ID_alter().

File

core/modules/ckeditor/ckeditor.module, line 205

Code

function ckeditor_form_filter_format_add_form_alter(array &$form, FormStateInterface $form_state, $form_id) {
    // Add an additional validate callback so we can ensure the media_embed filter
    // is enabled when the DrupalMediaLibrary button is enabled.
    $form['#validate'][] = 'ckeditor_filter_format_edit_form_validate';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.