You are here

function imce_theme in IMCE 7

Same name and namespace in other branches
  1. 8.2 imce.module \imce_theme()
  2. 8 imce.module \imce_theme()
  3. 6.2 imce.module \imce_theme()
  4. 6 imce.module \imce_theme()

Implements hook_theme().

File

./imce.module, line 95
Implements the necessary hooks for the file browser to work properly.

Code

function imce_theme() {
  $path = drupal_get_path('module', 'imce') . '/tpl';
  $theme['imce_admin'] = array(
    'function' => 'imce_admin_theme',
    'render element' => 'form',
  );
  $theme['imce_directories'] = array(
    'function' => 'imce_directories_theme',
    'render element' => 'form',
  );
  $theme['imce_thumbnails'] = array(
    'function' => 'imce_thumbnails_theme',
    'render element' => 'form',
  );
  $theme['imce_root_text'] = array(
    'variables' => array(
      'imce_ref' => NULL,
    ),
  );
  $theme['imce_user_page'] = array(
    'variables' => array(
      'account' => NULL,
    ),
  );
  $theme['imce_file_list'] = array(
    'template' => 'imce-file-list',
    'variables' => array(
      'imce_ref' => NULL,
    ),
    'path' => $path,
  );
  $theme['imce_content'] = array(
    'template' => 'imce-content',
    'variables' => array(
      'tree' => NULL,
      'forms' => NULL,
      'imce_ref' => NULL,
    ),
    'path' => $path,
  );
  $theme['imce_page'] = array(
    'template' => 'imce-page',
    'variables' => array(
      'content' => NULL,
    ),
    'path' => $path,
  );
  return $theme;
}