You are here

function textimage_theme in Textimage 6.2

Same name and namespace in other branches
  1. 8.4 textimage.module \textimage_theme()
  2. 8.3 textimage.module \textimage_theme()
  3. 7.3 textimage.module \textimage_theme()
  4. 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;
}