function globallink_block_load_data in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.7 globallink_block/globallink_block.inc \globallink_block_load_data()
- 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.
3 calls to globallink_block_load_data()
- globallink_block_active_form in globallink_block/
globallink_block_active_submissions.inc - Builds form to show all active block submissions.
- globallink_block_get_translations_for_row_id in globallink_block/
globallink_block_receive.inc - Gets block translations by row ID.
- globallink_block_update_ticket_id in globallink_block/
globallink_block.inc - Updates block ticket ID.
File
- globallink_block/
globallink_block.inc, line 754
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;
}