You are here

function panels_mini_delete in Panels 5.2

Same name and namespace in other branches
  1. 6.3 panels_mini/panels_mini.module \panels_mini_delete()
  2. 6.2 panels_mini/panels_mini.module \panels_mini_delete()
  3. 7.3 panels_mini/panels_mini.module \panels_mini_delete()

Delete a mini panel.

1 call to panels_mini_delete()
panels_mini_delete_confirm_submit in panels_mini/panels_mini.module
Handle the submit button to delete a mini panel.

File

panels_mini/panels_mini.module, line 1149
panels_mini.module

Code

function panels_mini_delete($panel_mini) {
  db_query("DELETE FROM {panels_mini} WHERE pid = %d", $panel_mini->pid);
  db_query("DELETE FROM {blocks} WHERE module = 'panels_mini' AND delta = %d", $panel_mini->pid);
  return panels_delete_display($panel_mini->did);
}