function simplemeta_meta_delete in Simple Meta 7
Same name and namespace in other branches
- 6.2 simplemeta.module \simplemeta_meta_delete()
Delete meta data.
Parameters
int $sid: SimpleMeta id
2 calls to simplemeta_meta_delete()
- simplemeta_meta_delete_confirm_submit in ./
simplemeta.admin.inc - SimpleMeta deletion confirmation form submit callback.
- simplemeta_page_meta_form_submit_delete in ./
simplemeta.module - On-page SimpleMeta form submit callback on delete.
File
- ./
simplemeta.module, line 394 - SimpleMeta module.
Code
function simplemeta_meta_delete($sid) {
$meta = simplemeta_meta_load($sid);
if ($meta) {
db_delete('simplemeta')
->condition('sid', $sid, '=')
->execute();
module_invoke_all('simplemeta', $meta, 'delete');
}
}