You are here

function imce_integrate in IMCE 5

integrate with editors.

1 call to imce_integrate()
imce_footer in ./imce.module
Implementation of hook_footer().

File

./imce.module, line 900

Code

function imce_integrate($e, $check = NULL) {
  static $state = array();
  if ($check) {
    return $state[$e];
  }
  if (!$state[$e]) {
    drupal_add_js(drupal_get_path('module', 'imce') . '/imce_set_' . $e . '.js');
    drupal_add_js('var imceBrowserURL = "' . url('imce/browse') . '";', 'inline');
    $state[$e] = TRUE;
  }
}