function fieldable_panels_panes_services_delete in Fieldable Panels Panes (FPP) 7
Delete a fieldable panels pane.
Parameters
int $fpid: Unique identifier of the fieldable panels pane to delete.
Return value
bool|mixed TRUE if deleted successfully, or services_error().
1 string reference to 'fieldable_panels_panes_services_delete'
File
- ./
fieldable_panels_panes.services.inc, line 304 - Contains callbacks for service resource manipulation.
Code
function fieldable_panels_panes_services_delete($fpid) {
$fpp = fieldable_panels_panes_load($fpid);
if (empty($fpp)) {
return services_error(t('There is no fieldable panels pane found with id @fpid.', array(
'@fpid' => $fpid,
)), 404);
}
// Delete fieldable panels pane.
fieldable_panels_panes_delete($fpid);
return TRUE;
}