You are here

function textimage_theme in Textimage 7.3

Same name and namespace in other branches
  1. 8.4 textimage.module \textimage_theme()
  2. 8.3 textimage.module \textimage_theme()
  3. 6.2 textimage.module \textimage_theme()
  4. 7.2 textimage.module \textimage_theme()

Implements hook_theme().

File

./textimage.module, line 39
Textimage - Provides text to image manipulations.

Code

function textimage_theme() {
  $theme = array(
    // Get a textimage from a stored image style.
    'textimage_style_image' => array(
      'variables' => array(
        'style_name' => '',
        'text' => array(),
        'format' => 'png',
        'alt' => 'Image not available.',
        'title' => '',
        'attributes' => array(),
        'caching' => TRUE,
        'node' => NULL,
        'source_image_file' => NULL,
      ),
    ),
    // Get a textimage from a programmatically created image style.
    'textimage_direct_image' => array(
      'variables' => array(
        'effects' => array(),
        'text' => array(),
        'format' => 'png',
        'alt' => 'Image not available.',
        'title' => '',
        'attributes' => array(),
        'caching' => TRUE,
      ),
    ),
    // Format a textimage.
    'textimage_formatter' => array(
      'variables' => array(
        'textimage' => NULL,
        'style_name' => '',
        'effects' => array(),
        'text' => array(),
        'format' => 'png',
        'caching' => TRUE,
        'node' => NULL,
        'source_image_file' => NULL,
        'target_uri' => NULL,
        'force_hashed_filename' => FALSE,
        'alt' => '',
        'title' => '',
        'attributes' => array(),
        'image_container_attributes' => array(),
        'href' => '',
      ),
    ),
    // Textimage background image effect - summary.
    'textimage_background_effect_summary' => array(
      'variables' => array(
        'data' => NULL,
      ),
    ),
    // Textimage text image effect - summary.
    'textimage_text_effect_summary' => array(
      'variables' => array(
        'data' => NULL,
      ),
    ),
    // Textimage GIF transparency effect - summary.
    'textimage_gif_transparency_effect_summary' => array(
      'variables' => array(
        'data' => NULL,
      ),
    ),
    // Render a string with color formatting.
    'textimage_colored_string' => array(
      'variables' => array(
        'text' => '',
        'foreground_color' => '#000000',
        'background_color' => '',
        'border' => FALSE,
        'border_color' => '#000000',
      ),
    ),
  );
  return $theme;
}