You are here

function shoutbox_theme in Shoutbox 6.2

Same name and namespace in other branches
  1. 6 shoutbox.module \shoutbox_theme()
  2. 7.2 shoutbox.module \shoutbox_theme()
  3. 7 shoutbox.module \shoutbox_theme()

Implementation of hook_theme().

File

./shoutbox.module, line 315
Shout box module displays a block for users to create short messages for the whole site. Uses AHAH to update the database and display content.

Code

function shoutbox_theme() {

  // Create the theme registry
  $registry = array(
    'shoutbox_links' => array(),
    'shoutbox_post_forbidden' => array(),
    'shoutbox_interval_message' => array(),
    'shoutbox_block_page_link' => array(),
    'shoutbox_external_files' => array(),
    'shoutbox_post' => array(
      'arguments' => array(
        'shout' => NULL,
        'links' => array(),
      ),
    ),
    'shoutbox_page' => array(
      'arguments' => array(
        'output' => NULL,
      ),
    ),
  );

  // Add the theme file to each
  $file = 'shoutbox.theme.inc';
  foreach ($registry as $key => $entry) {
    $registry[$key]['file'] = $file;
  }
  return $registry;
}