You are here

function empty_page_admin_delete_form_submit in Empty Page 7

Form submit handler for deleting an Empty Page callback.

_state

Parameters

array $form:

File

./empty_page.admin.inc, line 99
Administrative functionality for Empty Page module.

Code

function empty_page_admin_delete_form_submit($form, &$form_state) {
  empty_page_delete_callback($form_state['values']['callback']->cid);

  // Clear menu cache.
  empty_page_clear_menu_cache();
  drupal_set_message(t('Callback <em>!path</em> deleted.', array(
    '!path' => $form_state['values']['callback']->path,
  )));
}