You are here

function _vud_comment_get_node_type in Vote Up/Down 7

Same name and namespace in other branches
  1. 6.3 vud_comment/vud_comment.module \_vud_comment_get_node_type()
  2. 6.2 vud_comment/vud_comment.module \_vud_comment_get_node_type()

Function to return the node type of a particular node ID.

1 call to _vud_comment_get_node_type()
vud_comment_comment_view in vud_comment/vud_comment.module
Implementation of hook_comment_view().

File

vud_comment/vud_comment.module, line 172
Adds a voting widget to comments.

Code

function _vud_comment_get_node_type($nid) {
  return db_query("SELECT type from {node} where nid = :nid", array(
    ':nid' => $nid,
  ))
    ->fetchField();
}