You are here

function osmplayer_theme in MediaFront 7.2

Same name and namespace in other branches
  1. 6.2 players/osmplayer/osmplayer.module \osmplayer_theme()
  2. 6 players/osmplayer/osmplayer.module \osmplayer_theme()
  3. 7 players/osmplayer/osmplayer.module \osmplayer_theme()

Implements hook_theme()

File

players/osmplayer/osmplayer.module, line 418

Code

function osmplayer_theme() {
  $info = osmplayer_get_info();
  $themes = array();
  foreach ($info['templates'] as $template => $info) {
    $themes['osmplayer_' . $template] = array(
      'template' => 'osmplayer_' . $template,
      'variables' => array(
        'params' => NULL,
        'templates' => NULL,
      ),
      'path' => $info['path'],
    );
  }
  $themes['osmplayer_plugin_table'] = array(
    'render element' => 'element',
  );
  return $themes;
}