function homebox_delete_page in Homebox 6.3
Same name and namespace in other branches
- 6.2 homebox.module \homebox_delete_page()
- 7.3 homebox.module \homebox_delete_page()
- 7.2 homebox.module \homebox_delete_page()
Helper function to delete a page
Parameters
$name: The machine name of the page to delete
Return value
Boolean status of the operation
2 calls to homebox_delete_page()
- homebox_admin_page_delete_confirm_submit in ./
homebox.admin.inc - Submission of the delete/revert confirmation form
- homebox_features_revert in ./
homebox.features.inc - Implementation of hook_features_revert().
File
- ./
homebox.module, line 907 - Homebox main file, takes care of global functions settings constants, etc.
Code
function homebox_delete_page($name) {
// Delete the page and corresponding user settings
if (db_query("DELETE FROM {homebox_pages} WHERE name = '%s'", $name) && db_query("DELETE FROM {homebox_users} WHERE name = '%s'", $name)) {
return TRUE;
}
return FALSE;
}