function globallink_block_get_row in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.6 globallink_block/globallink_block.inc \globallink_block_get_row()
Retrieves block's row.
Parameters
string $object_id: The block's ID.
string $object_type: The block's type.
string $source: The source of the block.
string $target: The target of the block.
Return value
The row if block exists. FALSE if the block doesn't exist.
1 call to globallink_block_get_row()
- globallink_block_update_ticket_id in globallink_block/
globallink_block.inc - Updates block ticket ID.
File
- globallink_block/
globallink_block.inc, line 246
Code
function globallink_block_get_row($object_id, $object_type, $source, $target) {
$result = db_select('globallink_core_block', 'tco')
->fields('tco')
->condition('object_id', $object_id, '=')
->condition('object_type', $object_type, '=')
->condition('source', $source, '=')
->condition('target', $target, '=')
->execute();
foreach ($result as $row) {
return $row;
}
return FALSE;
}