1.20.x comment.module comment_theme()

Implements hook_theme().

File

modules/comment/comment.module, line 162
Enables users to comment on published content.

Code

function comment_theme() {
  $base = array(
    'file' => 'comment.theme.inc',
  );

  return array(
    'comment_block' => array(
      'variables' => array('comments' => array()),
    ) + $base,
    'comment_preview' => array(
      'variables' => array('comment' => NULL),
    ) + $base,
    'comment' => array(
      'template' => 'templates/comment',
      'render element' => 'elements',
    ) + $base,
    'comment_post_forbidden' => array(
      'variables' => array('node' => NULL),
    ) + $base,
  );
}