You are here

function messaging_template_theme in Messaging 7

Same name and namespace in other branches
  1. 6.4 messaging_template/messaging_template.module \messaging_template_theme()
  2. 6.3 messaging_template/messaging_template.module \messaging_template_theme()

Implements hook_theme()

File

messaging_template/messaging_template.module, line 48
Messaging Template Drupal Messaging Framework

Code

function messaging_template_theme() {
  return array(
    'messaging_template_text' => array(
      'render element' => 'element',
      'file' => 'messaging_template.inc',
    ),
    'messaging_template_subject' => array(
      'render element' => 'element',
      'file' => 'messaging_template.inc',
    ),
    'messaging_template_body' => array(
      'render element' => 'element',
      'file' => 'messaging_template.inc',
    ),
    'messaging_template_body_html' => array(
      'variables' => array(
        'element' => NULL,
        'header' => NULL,
        'content' => NULL,
        'footer' => NULL,
      ),
      'template' => 'messaging_template_body_html',
    ),
    'messaging_template_body_plain' => array(
      'variables' => array(
        'element' => NULL,
        'header' => NULL,
        'content' => NULL,
        'footer' => NULL,
      ),
      'template' => 'messaging_template_body_plain',
    ),
  );
}