function tripal_remove_site

3.x tripal_ws.api.inc tripal_remove_site($record_id)

Remove a site from the web services table.

Parameters

$record_id: ID of the record to be deleted.

Return value

TRUE if the record was successfully deleted, FALSE otherwise.

Related topics

File

tripal_ws/api/tripal_ws.api.inc, line 186
This file provides the Tripal Web Services API: a set of functions for interacting with the Tripal Web Services.

Code

function tripal_remove_site($record_id) {
  if ($record_id) {
    db_delete('tripal_sites')
      ->condition('id', $record_id)
      ->execute();
    drupal_set_message('The Tripal site \'' . $record_id . '\' has been removed.');
    return TRUE;
  }
  return FALSE;
}