You are here

function dialog_comment_node_view in Dialog 7.2

Implement hook_node_view().

File

modules/dialog_comment/dialog_comment.module, line 11
Provides dialog integration for comment.module.

Code

function dialog_comment_node_view($node, $view_mode, $langcode) {

  // Attach the library for handling the dialog in the response.
  $node->content['#attached']['library'][] = array(
    'system',
    'drupal.ajax',
  );
}