function globallink_menu_get_row in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.6 globallink_menu/globallink_menu.inc \globallink_menu_get_row()
Retrieves menu's row by ID.
Parameters
string $object_id: The object ID.
string $object_type: The object type.
string $source: The target source.
string $target: The target.
Return value
The row if menu exists.
1 call to globallink_menu_get_row()
- globallink_menu_update_ticket_id in globallink_menu/
globallink_menu.inc - Updates menu ticket ID.
File
- globallink_menu/
globallink_menu.inc, line 183
Code
function globallink_menu_get_row($object_id, $object_type, $source, $target) {
$result = db_select('globallink_core_menu', '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;
}