array('url' => url('imce', array('query' => array('app' => $editor . '|url@')))), ); drupal_add_js($settings, 'setting'); drupal_add_js('var imceBrowserURL = "' . url('imce/browse') . '";', 'inline'); } return array( 'imce' => array( 'extensions' => array('imce' => t('IMCE')), 'url' => 'http://drupal.org/project/imce', 'options' => array( 'file_browser_callback' => 'imceImageBrowser', 'inline_styles' => TRUE, ), 'load' => FALSE, ), ); case 'ckeditor': $integrated[$editor] = TRUE; return array( 'imce' => array( 'extensions' => array('imce' => t('IMCE')), 'url' => 'http://drupal.org/project/imce', 'options' => array( 'filebrowserBrowseUrl' => url('imce', array('query' => array('app' => $editor . '|sendto@imceCkeditSendTo|params@'))), ), 'load' => FALSE, ), ); case 'fckeditor': if (!isset($integrated[$editor])) { $integrated[$editor] = TRUE; drupal_add_js($imcepath . '/imce_set_fck.js'); } return array( 'imce' => array( 'extensions' => array('imce' => t('IMCE')), 'url' => 'http://drupal.org/project/imce', 'options' => array( 'LinkBrowser' => TRUE, 'LinkBrowserURL' => url('imce', array('query' => array('app' => $editor . '|url@txtUrl'))), 'ImageBrowser' => TRUE, 'ImageBrowserURL' => url('imce', array('query' => array('app' => $editor . '|url@txtUrl|width@txtWidth|height@txtHeight'))), 'FlashBrowser' => TRUE, 'FlashBrowserURL' => url('imce', array('query' => array('app' => $editor . '|url@txtUrl'))), ), 'load' => FALSE, ), ); } }