function imce_content

cis7 imce_content($user, $scheme = NULL, $jsop = NULL)
cle7 imce_content($user, $scheme = NULL, $jsop = NULL)
elmsmedia7 imce_content($user, $scheme = NULL, $jsop = NULL)
icor7 imce_content($user, $scheme = NULL, $jsop = NULL)
meedjum_blog7 imce_content($user, $scheme = NULL, $jsop = NULL)
mooc7 imce_content($user, $scheme = NULL, $jsop = NULL)

Returns the content of the file browser.

1 call to imce_content()
imce_page in sites/all/modules/ulmus/imce/inc/
Returns the imce page for the specified user and the file scheme.
1 string reference to 'imce_content'
imce_theme in sites/all/modules/ulmus/imce/imce.module
Implements hook_theme().


sites/all/modules/ulmus/imce/inc/, line 36
Implements the file browser.


function imce_content($user, $scheme = NULL, $jsop = NULL) {

  //execute ajax calls.
  if ($jsop) {
    return imce_js($user, $scheme, $jsop);

  //initiate configuration profile
  if (!$imce = imce_initiate_profile($user, $scheme)) {
    return '';
  imce_process_profile($imce); //get active directory content

  //Before creating the content let's add main files required for imce to function properly.
  $path = drupal_get_path('module', 'imce');
  drupal_add_js($path . '/js/jquery.form.js');
  drupal_add_js($path . '/js/imce.js');
  drupal_add_js($path . '/js/imce_extras.js');
  drupal_add_css($path . '/css/imce-content.css');

  //process forms.
  $imce_ref = array('imce' => &$imce);
  $forms = array();
  if (!$imce['error']) {
    //process file upload.
    if (imce_perm_exists($imce, 'upload')) {
      $forms[] = drupal_get_form('imce_upload_form', $imce_ref);
    //process file operations.
    $forms[] = drupal_get_form('imce_fileop_form', $imce_ref);
  $forms = drupal_render($forms);

  //run custom content functions. possible to insert extra forms. content is invisible when js is enabled.
  foreach (variable_get('imce_custom_content', array()) as $func => $state) {
    if ($state && function_exists($func) && $output = $func($imce)) {
      $forms .= $output;

  $content = theme('imce_content', array(
    'tree' => imce_create_tree($imce),
    'forms' => $forms,
    'imce_ref' => $imce_ref,

  //make necessary changes for js conversion
  $imce['dir'] = str_replace('%2F', '/', rawurlencode($imce['dir']));
  unset($imce['files'], $imce['name'], $imce['directories'], $imce['subdirectories'], $imce['filesize'], $imce['quota'], $imce['tuquota'], $imce['thumbnails'], $imce['uid'], $imce['usertab']);

  drupal_add_js($imce_ref, 'setting');

  return $content;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.