function panels_mini_delete in Panels 6.3
Same name and namespace in other branches
- 5.2 panels_mini/panels_mini.module \panels_mini_delete()
- 6.2 panels_mini/panels_mini.module \panels_mini_delete()
- 7.3 panels_mini/panels_mini.module \panels_mini_delete()
Remove a mini panel.
1 string reference to 'panels_mini_delete'
- panels_mini_schema_1 in panels_mini/
panels_mini.install - Schema version 1 for Panels in D6.
File
- panels_mini/
panels_mini.module, line 221 - panels_mini.module
Code
function panels_mini_delete($mini) {
db_query("DELETE FROM {panels_mini} WHERE name = '%s'", $mini->name);
if ($mini->type != t('Overridden')) {
db_query("DELETE FROM {blocks} WHERE module = 'panels_mini' AND delta = '%s'", $mini->name);
}
return panels_delete_display($mini->did);
}