function comment_theme

Same name in other branches
  1. 9 core/modules/comment/comment.module \comment_theme()
  2. 8.9.x core/modules/comment/comment.module \comment_theme()
  3. 10 core/modules/comment/comment.module \comment_theme()
  4. 11.x core/modules/comment/comment.module \comment_theme()

Implements hook_theme().

File

modules/comment/comment.module, line 195

Code

function comment_theme() {
    return array(
        'comment_block' => array(
            'variables' => array(),
        ),
        'comment_preview' => array(
            'variables' => array(
                'comment' => NULL,
            ),
        ),
        'comment' => array(
            'template' => 'comment',
            'render element' => 'elements',
        ),
        'comment_post_forbidden' => array(
            'variables' => array(
                'node' => NULL,
            ),
        ),
        'comment_wrapper' => array(
            'template' => 'comment-wrapper',
            'render element' => 'content',
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.