You are here

function ajax_comments_views_data in AJAX Comments 7

Implements hook_views_data().

File

./ajax_comments.module, line 80
AJAX comments module file.

Code

function ajax_comments_views_data() {
  $data['node']['list_comments'] = array(
    'title' => t('List of comments'),
    'help' => t("Display the node's list of comments."),
    'field' => array(
      'handler' => 'ajax_comments_handler_field_list_comments',
    ),
  );
  $data['node']['ajax_comment'] = array(
    'title' => t('AJAX Add Comment'),
    'help' => t('Adds an inline AJAX comment form.'),
    'field' => array(
      'handler' => 'ajax_comments_handler_field_ajax_add_comment',
    ),
  );
  return $data;
}