You are here

function _block_inject_get_regions_old in Block Inject 7

Retrieves from the database the existing declared regions for injection.

Deprecated function introduced for the smooth update to 7.x-1.2-alpha4

1 call to _block_inject_get_regions_old()
block_inject_system_info_alter in ./block_inject.module
Implements hook_system_info_alter().

File

./block_inject.module, line 346
The Block Inject module functions.

Code

function _block_inject_get_regions_old() {
  $result = db_select('block_inject', 'bi')
    ->fields('bi', array(
    'region',
    'node_type',
    'id',
    'node_name',
  ))
    ->orderBy('region', 'ASC')
    ->execute();
  return $result;
}