You are here

function mediafront_preset_theme in MediaFront 6

Same name and namespace in other branches
  1. 6.2 includes/mediafront.preset.inc \mediafront_preset_theme()

Implementation of hook_theme

1 call to mediafront_preset_theme()
mediafront_theme in ./mediafront.module
Implementation of hook_theme().

File

includes/mediafront.preset.inc, line 97

Code

function mediafront_preset_theme() {
  $theme = array();

  // Iterate through all of our presets, and create a formatter for each one.
  foreach (mediafront_preset_get_presets() as $preset) {
    $theme['mediafront_formatter_' . $preset['name'] . '_player'] = array(
      'arguments' => array(
        'element' => NULL,
      ),
      'function' => 'theme_mediafront_formatter_player',
    );
  }
  return $theme;
}