You are here

function file_browser_preprocess_details in File Entity Browser 8

Implements hook_preprocess_details().

File

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

Code

function file_browser_preprocess_details(&$variables) {
  if (isset($variables['element']['#id']) && $variables['element']['#id'] == 'edit-field-file-browser-reference') {
    $variables['#attached']['library'][] = 'file_browser/iframe';
  }
}