You are here

function themekey_comment_cid2nid in ThemeKey 6

Same name and namespace in other branches
  1. 6.4 modules/themekey.comment.inc \themekey_comment_cid2nid()
  2. 6.2 modules/themekey.comment.inc \themekey_comment_cid2nid()
  3. 6.3 modules/themekey.comment.inc \themekey_comment_cid2nid()
  4. 7.3 modules/themekey.comment.inc \themekey_comment_cid2nid()
  5. 7 modules/themekey.comment.inc \themekey_comment_cid2nid()
  6. 7.2 modules/themekey.comment.inc \themekey_comment_cid2nid()
1 string reference to 'themekey_comment_cid2nid'
themekey_comment_themekey_properties in modules/themekey.comment.inc

File

modules/themekey.comment.inc, line 27

Code

function themekey_comment_cid2nid($cid) {
  $nid = db_result(db_query('SELECT nid FROM {comments} WHERE cid = %d', $cid));
  return $nid ? $nid : FALSE;
}