You are here

function _fe_block_get_bid in Features Extra 6

Same name and namespace in other branches
  1. 7 fe_block/fe_block.module \_fe_block_get_bid()

Get box bid.

3 calls to _fe_block_get_bid()
fe_block_boxes_features_rebuild in ./fe_block.module
Implementation of hook_features_rebuild().
fe_block_boxes_features_revert in ./fe_block.module
Implementation of hook_features_revert().
fe_block_settings_features_revert in ./fe_block.module
Implementation of hook_features_revert().

File

./fe_block.module, line 445

Code

function _fe_block_get_bid($machine_name) {
  static $cache = array();
  if (!isset($cache[$machine_name])) {
    $cache[$machine_name] = (int) db_result(db_query("SELECT bid FROM {fe_block_boxes} WHERE machine_name = '%s'", $machine_name));
  }
  return $cache[$machine_name];
}