function globallink_fieldable_panels_update_deleted_records in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_fieldable_panels/globallink_fieldable_panels.inc \globallink_fieldable_panels_update_deleted_records()
Updates status for deleted fieldable panels.
Parameters
string $pd4: The project director details.
object $globallink: GlobalLink object.
Return value
bool TRUE if update was successful, FALSE on error.
1 call to globallink_fieldable_panels_update_deleted_records()
- globallink_fieldable_panels_receive_form_submit in globallink_fieldable_panels/
globallink_fieldable_panels_receive.inc - Handles fieldable panels form submission.
File
- globallink_fieldable_panels/
globallink_fieldable_panels.inc, line 943
Code
function globallink_fieldable_panels_update_deleted_records($pd4, $globallink) {
try {
$globallink->status = 'Source Deleted';
globallink_send_download_confirmation($globallink->targetTicket, $pd4);
globallink_fieldable_panels_update_status($globallink, 'Source Deleted');
} catch (SoapFault $se) {
watchdog('GlobalLink', 'SOAP Exception - %function - Code[%faultcode], Message[%faultstring]', array(
'%function' => __FUNCTION__,
'%faultcode' => $se->faultcode,
'%faultstring' => $se->faultstring,
), WATCHDOG_ERROR);
form_set_error('', t('Web Services Error: @faultcode - @faultstring', array(
'@faultcode' => $se->faultcode,
'@faultstring' => $se->faultstring,
)));
return FALSE;
} catch (Exception $e) {
watchdog('GlobalLink', 'Exception - %function - File[%file], Line[%line], Code[%code], Message[%message]', array(
'%function' => __FUNCTION__,
'%file' => $e
->getFile(),
'%line' => $e
->getLine(),
'%code' => $e
->getCode(),
'%message' => $e
->getMessage(),
), WATCHDOG_ERROR);
form_set_error('', t('Error: @message', array(
'@message' => $e
->getMessage(),
)));
return FALSE;
}
return TRUE;
}