function swftools_profiles_theme in SWF Tools 6.3
Implementation of hook_theme().
We create a series of "dummy" formatters that simply have a name that can be used to identify the profile we want.
Note the function varies depending on whether we are using CONTENT_HANDLE_CORE (1) or CONTENT_HANDLE_MODULE (2).
File
- profiles/
swftools_profiles.module, line 206 - Enables the SWF Tools profile system to allow multiple player configurations to be defined.
Code
function swftools_profiles_theme() {
// Initialise an array to hold results
$themes = array();
// Iterate over each profile and construct a formatter for it
foreach (swftools_profiles_get_profiles(TRUE) as $profile) {
$themes['swftools_profiles_formatter_swftools_profiles_' . $profile['profile']] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_swftools_profiles',
);
}
// Return the results
return $themes;
}