You are here

function imce_theme in IMCE 6

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. 7 imce.module \imce_theme()

Implementation of hook_theme().

File

./imce.module, line 66

Code

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