You are here

function smiley_theme in Smiley 7.2

Same name and namespace in other branches
  1. 6 smiley.module \smiley_theme()
  2. 7 smiley.module \smiley_theme()

Implements hook_theme().

File

./smiley.module, line 60
A framework for replacing text smileys with images.

Code

function smiley_theme($existing, $type, $theme, $path) {
  $theme_hooks = array();

  // Replace a smiley with an image.
  $theme_hooks['smiley_image_smiley'] = array(
    'variables' => array(
      'image_path' => '',
      'replaced_text' => '',
      'classes_array' => array(),
    ),
    'template' => 'smiley_image_smiley',
  );

  // Replace a smiley with a span + background image.
  $theme_hooks['smiley_span_smiley'] = array(
    'variables' => array(
      'image_path' => '',
      'replaced_text' => '',
      'classes_array' => array(),
    ),
    'template' => 'smiley_span_smiley',
  );
  return $theme_hooks;
}