function textimage_theme in Textimage 6.2
Same name and namespace in other branches
- 8.4 textimage.module \textimage_theme()
- 8.3 textimage.module \textimage_theme()
- 7.3 textimage.module \textimage_theme()
- 7.2 textimage.module \textimage_theme()
Implementation of hook_theme().
File
- ./
textimage.module, line 107
Code
function textimage_theme() {
$theme = array(
'textimage_image' => array(
'arguments' => array(
'preset',
'text',
'additional_text' => array(),
'format' => 'png',
'alt' => '',
'title' => '',
'attributes' => array(),
'getsize' => TRUE,
'image' => TRUE,
),
),
'textimage_preset_edit' => array(
'arguments' => array(
'form' => array(),
),
'file' => 'textimage_admin.inc',
),
);
module_load_include('inc', 'textimage', 'textimage_admin');
foreach (textimage_get_presets() as $preset) {
$theme['textimage_formatter_textimage_' . $preset->name] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_textimage_formatter',
);
}
return $theme;
}