You are here

function mostpopular_service_delete in Drupal Most Popular 7

Deletes the service configuration with the given ID.

Parameters

integer $sid The service ID.:

1 call to mostpopular_service_delete()
mostpopular_service_delete_form_submit in ./mostpopular.services.inc

File

./mostpopular.module, line 535
The main file for the Most Popular module.

Code

function mostpopular_service_delete($sid) {
  if (!empty($sid) && is_numeric($sid)) {
    db_delete('mostpopular_service')
      ->condition('sid', $sid)
      ->execute();
  }
}