You are here

function flag_get_content_id in Flag 7.2

Same name and namespace in other branches
  1. 6.2 flag.module \flag_get_content_id()

Get content ID from a flag content ID.

Parameters

$fcid: The flag content ID for which to look up the content ID.

File

./flag.module, line 1830
The Flag module.

Code

function flag_get_content_id($fcid) {
  return db_select('flag_content', 'fc')
    ->fields('fc', array(
    'content_id',
  ))
    ->condition('fcid', $fcid)
    ->execute()
    ->fetchField();
}