function swftools_profiles_field_formatter_info in SWF Tools 6.3
Implementation of hook_field_formatter_info().
Returns an array of formatter definitions - one for each profile.
File
- profiles/
swftools_profiles.module, line 177 - Enables the SWF Tools profile system to allow multiple player configurations to be defined.
Code
function swftools_profiles_field_formatter_info() {
// Initialise an array to hold results
$profiles = array();
// Iterate over each profile and create a formatter for it
foreach (swftools_profiles_get_profiles() as $profile) {
$profiles['swftools_profiles_' . $profile['profile']] = array(
'label' => t('SWF Tools profile - @name', array(
'@name' => $profile['name'],
)),
'field types' => array(
'filefield',
'link',
'text',
),
'multiple values' => $profile['multiple'],
);
}
// Return the result
return $profiles;
}