You are here

function heartbeat_theme in Heartbeat 8

Same name and namespace in other branches
  1. 6.4 heartbeat.module \heartbeat_theme()
  2. 6.2 heartbeat.module \heartbeat_theme()
  3. 6.3 heartbeat.module \heartbeat_theme()
  4. 7 heartbeat.module \heartbeat_theme()

Implements hook_theme().

File

./heartbeat.module, line 46
Contains heartbeat.module.

Code

function heartbeat_theme() {
  $theme = [];
  $theme['heartbeat'] = array(
    'render element' => 'elements',
    'file' => 'heartbeat.page.inc',
    'template' => 'heartbeat',
  );
  $theme['heartbeat_content_add_list'] = [
    'render element' => 'content',
    'variables' => [
      'content' => NULL,
    ],
    'file' => 'heartbeat.page.inc',
  ];
  $theme['heartbeat_stream'] = [
    'variables' => array(
      'messages' => NULL,
      'zilla' => 2,
    ),
  ];
  $theme['friend_interaction'] = [
    'variables' => array(
      'user' => NULL,
      'flag' => NULL,
      'userPic' => NULL,
      'testing' => 'testing yo',
    ),
  ];
  return $theme;
}