You are here

function config_pages_delete_form_submit in Config Pages 7

Submit callback for config_pages_delete_form

1 string reference to 'config_pages_delete_form_submit'
config_pages_delete_form in ./config_pages.admin.inc
Form callback: confirmation form for deleting a config_pages.

File

./config_pages.admin.inc, line 493
ConfigPages editing UI.

Code

function config_pages_delete_form_submit($form, &$form_state) {
  $config_pages = $form_state['config_pages'];
  config_pages_delete($config_pages);
  drupal_set_message(t('The config page %name has been deleted.', array(
    '%name' => $config_pages->name,
  )));
  watchdog('config_pages', 'Deleted config page %name.', array(
    '%name' => $config_pages->name,
  ));
}