You are here

function imce_js_navigate in IMCE 7

Same name and namespace in other branches
  1. 6.2 inc/imce.js.inc \imce_js_navigate()
  2. 6 inc/js.inc \imce_js_navigate()

Ajax operation: navigate.

File

inc/imce.js.inc, line 11
Handles ajax file operations.

Code

function imce_js_navigate(&$imce) {
  return array(
    'files' => theme('imce_file_list', array(
      'imce_ref' => array(
        'imce' => &$imce,
      ),
    )),
    'dirsize' => format_size($imce['dirsize']),
    'subdirectories' => array_map('rawurlencode', array_values($imce['subdirectories'])),
    'perm' => $imce['perm'],
  );
}