function emfield_provider_themes in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 emfield.module \emfield_provider_themes()
- 6.2 emfield.module \emfield_provider_themes()
Allow providers to create their own themes.
@TODO: Remove this once we've moved all providers outside emfield, as their wrapping modules can use standard Drupal hooks.
2 calls to emfield_provider_themes()
- emaudio_theme in contrib/
emaudio/ emaudio.module - Impelements hook_theme().
- emvideo_theme in contrib/
emvideo/ emvideo.module - Implementation of hook_theme().
File
- deprecated/
emfield-deprecated.inc, line 714 - Functionality to be deprecated from earlier versions of Embedded Media Field.
Code
function emfield_provider_themes($module, $provider = NULL) {
$themes = array();
if ($provider && ($subthemes = emfield_include_invoke($module, $provider, 'subtheme'))) {
$themes = $subthemes;
}
$providers = emfield_system_list($module);
foreach ($providers as $provider) {
if ($subthemes = emfield_include_invoke($module, $provider->name, 'emfield_subtheme')) {
$themes += $subthemes;
}
}
return $themes;
}