function filefield_mobile_codes_theme_alter in Mobile Codes 6.2
Implements hook_mobile_codes_theme_alter() on behalf of filefield.module.
File
- includes/
filefield.inc, line 10 - FileField module integration.
Code
function filefield_mobile_codes_theme_alter($items) {
ctools_include('export');
foreach (ctools_export_crud_load_all('mobile_codes_presets') as $preset) {
if (isset($preset->disabled) && !$preset->disabled) {
$items["mobile_codes_formatter_mobile_codes_filefield_{$preset->name}"] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_mobile_codes_filefield_formatter',
'file' => 'includes/filefield.inc',
);
}
}
}