You are here

function get_sqid_from_term_id in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3

Helper function to get subqueue id by term id.

Parameters

int $tid:

Return value

int subqueue id

File

modules/custom/varbase_magic/includes/views_nodequeue.inc, line 62

Code

function get_sqid_from_term_id($tid) {
  return db_query('SELECT sqid from {nodequeue_subqueue} where reference = :tid', array(
    ':tid' => $tid,
  ))
    ->fetchField();
}