You are here

function simplemeta_meta_form_submit_delete in Simple Meta 6.2

1 string reference to 'simplemeta_meta_form_submit_delete'
simplemeta_meta_form in ./simplemeta.module

File

./simplemeta.module, line 407

Code

function simplemeta_meta_form_submit_delete($form, &$form_state) {
  if (!$form_state['values']['_ajax']) {
    $form_state['redirect'] = 'admin/content/simplemeta/' . $form_state['values']['_meta']->sid . '/delete';
  }
  else {
    simplemeta_meta_delete($form_state['values']['_meta']->sid);
    cache_clear_all('*', 'cache_simplemeta', TRUE);
    drupal_set_message(t('Meta has been deleted'));
  }
}