You are here

function comment_notify_get_notification_type in Comment Notify 7

Same name and namespace in other branches
  1. 8 comment_notify.inc \comment_notify_get_notification_type()

Get the type of notification for a comment notification record.

Parameters

int $cid:

Return value

int

2 calls to comment_notify_get_notification_type()
CommentNotifyTestCase::testCommentNotifyAnonymousUserFunctionalTest in ./comment_notify.test
Test various behaviors for anonymous users.
comment_notify_form_comment_form_alter in ./comment_notify.module
Implements hook_form_FORM_ID_alter() for comment_form().

File

./comment_notify.inc, line 191
Contains functions which utilize the database and other internal helpers.

Code

function comment_notify_get_notification_type($cid) {
  return db_select('comment_notify', 'cn')
    ->fields('cn', array(
    'notify',
  ))
    ->condition('cid', $cid)
    ->execute()
    ->fetchField();
}