You are here

function shorten_cs_delete in Shorten URLs 7

Same name and namespace in other branches
  1. 6 shorten_cs.admin.inc \shorten_cs_delete()
  2. 7.2 shorten_cs.admin.inc \shorten_cs_delete()

Builds the form to delete a custom service.

1 string reference to 'shorten_cs_delete'
shorten_cs_delete_form in ./shorten_cs.admin.inc
Returns HTML representing the shorten service delete form.

File

./shorten_cs.admin.inc, line 209
Provides the configuration page for Shorten URLs Custom Services.

Code

function shorten_cs_delete($form, &$form_state, $service) {
  $form['service'] = array(
    '#type' => 'value',
    '#value' => $service->name,
  );
  $form['#submit'] = array(
    'shorten_cs_delete_submit',
  );
  return confirm_form($form, t('Are you sure you want to delete the custom service %service?', array(
    '%service' => $service->name,
  )), 'admin/config/services/shorten/custom');
}