You are here

function mostpopular_service_delete_form_submit in Drupal Most Popular 7

File

./mostpopular.services.inc, line 466
Provides an admin GUI for configuring services.

Code

function mostpopular_service_delete_form_submit(&$form, &$form_state) {
  $service = $form_state['service'];
  mostpopular_service_delete($service->sid);
  drupal_set_message(t('Deleted @name: %title service', array(
    '@name' => $service->name,
    '%title' => $service->title,
  )));
  $form_state['redirect'] = 'admin/config/mostpopular/services';
}