You are here

function mee_theme in Scald: Media Management made easy 6

Same name and namespace in other branches
  1. 7 modules/fields/mee/mee.module \mee_theme()

Implementation of hook_theme().

File

mee/mee.module, line 14
Defines a special textarea, with drag and drop media driven by Scald and dnd.module when rich text editing is enabled on the textarea via the WYSIWYG API.

Code

function mee_theme() {
  $theme = array(
    'mee_textarea' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'mee_ressource_manager' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'mee_formatter_default' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'mee_formatter_plain' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'mee_formatter_short' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
  );
  $scald_config = variable_get('scald_config', 0);
  if (!empty($scald_config->contexts)) {
    foreach ($scald_config->contexts as $context => $details) {
      $theme['mee_formatter_' . $context] = array(
        'arguments' => array(
          'element' => NULL,
        ),
        'function' => 'theme_mee_context_formatter',
      );
    }
  }
  return $theme;
}