You are here

function file_browser_form_alter in File Entity Browser 8

Implements hook_form_alter().

File

./file_browser.module, line 30
Contains hook implementations for file_browser.

Code

function file_browser_form_alter(&$form, FormStateInterface &$form_state) {
  if (isset($form['#form_id'])) {
    if ($form['#form_id'] == 'entity_browser_browse_files_form' || $form['#form_id'] == 'entity_browser_browse_files_modal_form') {
      file_browser_attach_file_browser_to_form($form);
    }
  }
}