function globallink_fieldable_panels_get_row in GlobalLink Connect for Drupal 7.5
Same name and namespace in other branches
- 7.6 globallink_fieldable_panels/globallink_fieldable_panels.inc \globallink_fieldable_panels_get_row()
Retrieves fieldable panel's row by ID.
Parameters
string $fpid: The fieldable panel row ID.
string $source: The fieldable panel source.
string $target: The fieldable panel target.
Return value
The row if fieldable panel exists. FALSE if not.
1 call to globallink_fieldable_panels_get_row()
- globallink_fieldable_panels_update_ticket_id in globallink_fieldable_panels/
globallink_fieldable_panels.inc - Updates fieldable panel's ticket ID.
File
- globallink_fieldable_panels/
globallink_fieldable_panels.inc, line 608
Code
function globallink_fieldable_panels_get_row($fpid, $source, $target) {
$result = db_select('globallink_core_fieldable_panels', 'tcfp')
->fields('tcfp')
->condition('fpid', $fpid, '=')
->condition('source', $source, '=')
->condition('target', $target, '=')
->execute();
foreach ($result as $row) {
return $row;
}
return FALSE;
}