You are here

function feedback_simple_theme in Feedback Simple 7

Same name and namespace in other branches
  1. 6 feedback_simple.module \feedback_simple_theme()

Implements hook_theme().

File

./feedback_simple.module, line 41
Module file.

Code

function feedback_simple_theme($existing, $type, $theme, $path) {
  $variables = _feedback_simple_variable_get();
  $image = image_get_info($variables['image']);
  $registry['feedback_simple'] = array(
    'variables' => array(
      'enabled' => $variables['enabled'],
      'link' => $variables['link'],
      'target' => $variables['target'],
      'class' => $variables['class'],
      'align' => $variables['align'],
      'top' => $variables['top'],
      'image' => $variables['image'],
      'alt' => $variables['alt'],
      'deny' => $variables['deny'],
      'allow' => $variables['allow'],
      // Computed from image.
      'height' => $image['height'],
      'width' => $image['width'],
    ),
    'template' => 'feedback_simple',
  );
  return $registry;
}