You are here

function _fe_block_get_machine_name in Features Extra 6

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

Get box machine name.

3 calls to _fe_block_get_machine_name()
fe_block_form_alter in ./fe_block.module
Implementation of hook_form_alter().
fe_block_settings_features_export_render in ./fe_block.module
Implementation of hook_features_export_render().
_fe_block_build_id in ./fe_block.module
Generate block ID.

File

./fe_block.module, line 434

Code

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