You are here

function globallink_block_load_data in GlobalLink Connect for Drupal 7.7

Same name and namespace in other branches
  1. 7.5 globallink_block/globallink_block.inc \globallink_block_load_data()
  2. 7.6 globallink_block/globallink_block.inc \globallink_block_load_data()

Loads block data.

Parameters

string $bid: The block ID.

Return value

array Array of block data.

File

globallink_block/globallink_block.inc, line 370

Code

function globallink_block_load_data($bid) {
  $query = db_select('block_custom', 'bc')
    ->fields('bc')
    ->condition('bid', $bid, '=');
  $results = $query
    ->execute();
  $rows = array();
  foreach ($results as $item) {
    $rows[] = $item;
  }
  return $rows;
}