You are here

function media_theme in D7 Media 7

Same name and namespace in other branches
  1. 6 media.module \media_theme()
  2. 7.4 media.module \media_theme()
  3. 7.2 media.module \media_theme()
  4. 7.3 media.module \media_theme()

Implements hook_theme().

@TODO: Needs a major cleanup.

File

./media.module, line 319
Media API

Code

function media_theme() {
  return array(
    // The default media file list form element.
    'media_file_list' => array(
      'variables' => array(
        'element' => NULL,
      ),
    ),
    // A link for a file w/ an icon to the media/$fid page.
    'media_link' => array(
      'variables' => array(
        'file' => NULL,
      ),
      'file' => 'includes/media.theme.inc',
    ),
    // A preview of the uploaded file.
    'media_thumbnail' => array(
      'render element' => 'element',
      'file' => 'includes/media.theme.inc',
    ),
    // Administrative thumbnail previews.
    'media_admin_thumbnail' => array(
      'variables' => array(
        'file' => array(),
        'style_name' => 'thumbnail',
      ),
      'file' => 'includes/media.theme.inc',
    ),
    // Administrative thumbnail previews.
    'media_admin_thumbnail_operations' => array(
      'variables' => array(
        'file' => NULL,
      ),
      'file' => 'includes/media.theme.inc',
    ),
    // Tabs in the media browser.
    'media_browser_tabs' => array(
      'file' => 'includes/media.theme.inc',
    ),
    // Dialog page.
    'media_dialog_page' => array(
      'render element' => 'page',
      'template' => 'templates/media-dialog-page',
      'file' => 'includes/media.theme.inc',
    ),
    //
    'media_element' => array(
      'render element' => 'element',
      'file' => 'includes/media.theme.inc',
    ),
    'media_formatter_large_icon' => array(
      'variables' => array(
        'file' => NULL,
        'attributes' => array(),
      ),
      'file' => 'includes/media.theme.inc',
    ),
  );
}