You are here

function swftools_theme in SWF Tools 6.3

Same name and namespace in other branches
  1. 6 swftools.module \swftools_theme()
  2. 6.2 swftools.module \swftools_theme()

Implementation of hook_theme().

File

./swftools.module, line 1244
The primary component of SWF Tools that enables comprehensive media handling.

Code

function swftools_theme() {
  return array(
    // This is called by swf() when it is ready to embed
    'swftools_embed' => array(
      'arguments' => array(
        'data' => NULL,
      ),
      'file' => 'includes/swftools.theme.inc',
    ),
    // This implements the direct embedding method
    'swftools_direct' => array(
      'arguments' => array(
        'file' => NULL,
        'data' => NULL,
      ),
      'file' => 'includes/swftools.core.inc',
    ),
    // This themes the alternate HTML markup
    'swftools_html_alt' => array(
      'arguments' => array(
        'data' => NULL,
      ),
      'file' => 'includes/swftools.core.inc',
    ),
    // These are the SWF Tools CCK formatters
    'swftools_formatter_swftools' => array(
      'arguments' => array(
        'element' => NULL,
        'profile' => NULL,
      ),
      'function' => 'theme_swftools_formatter_swftools',
      'file' => 'includes/swftools.theme.inc',
    ),
    'swftools_formatter_swftools_no_file' => array(
      'arguments' => array(
        'element' => NULL,
      ),
      'function' => 'theme_swftools_formatter_swftools',
      'file' => 'includes/swftools.theme.inc',
    ),
    'swftools_formatter_swftools_playlist' => array(
      'arguments' => array(
        'element' => NULL,
        'profile' => NULL,
      ),
      'function' => 'theme_swftools_formatter_playlist',
      'file' => 'includes/swftools.theme.inc',
    ),
    'swftools_formatter_swftools_thumbnail' => array(
      'arguments' => array(
        'element' => NULL,
        'retrieve' => NULL,
      ),
      'function' => 'theme_swftools_formatter_thumbnail',
      'file' => 'includes/swftools.theme.inc',
    ),
    // This implements the swftools Form API element
    'swftools' => array(
      'arguments' => array(
        'content' => NULL,
      ),
      'file' => 'includes/swftools.core.inc',
    ),
    // This implements the theme for basic pages served from the cache
    'swftools_page' => array(
      'template' => 'swftools-page',
      'arguments' => array(
        'content' => NULL,
      ),
      'path' => drupal_get_path('module', 'swftools') . '/includes',
      'preprocess functions' => array(
        'template_preprocess_page',
      ),
    ),
    // This implements a generic accessible controls handler
    'swftools_accessible_controls' => array(
      'arguments' => array(
        'player' => NULL,
        'id' => NULL,
        'actions' => NULL,
        'visible' => NULL,
      ),
    ),
    // This defines the path to an empty image when no thumbnail is given
    'swftools_empty_image' => array(
      'arguments' => array(
        'data' => NULL,
      ),
      'file' => 'includes/swftools.theme.inc',
    ),
  );
}