You are here

function simplemeta_meta_delete in Simple Meta 6.2

Same name and namespace in other branches
  1. 7 simplemeta.module \simplemeta_meta_delete()

Delete meta

2 calls to simplemeta_meta_delete()
simplemeta_meta_delete_confirm_submit in ./simplemeta.admin.inc
simplemeta_meta_form_submit_delete in ./simplemeta.module

File

./simplemeta.module, line 286

Code

function simplemeta_meta_delete($sid) {
  $meta = simplemeta_meta_load($sid);
  if ($meta) {
    db_query("DELETE FROM {simplemeta} WHERE sid = %d", $sid);
    module_invoke_all('simplemeta', $meta, 'delete');
  }
}