function fieldable_panels_panes_uninstall in Fieldable Panels Panes (FPP) 7
Implements hook_uninstall().
File
- ./
fieldable_panels_panes.install, line 26 - Fieldable Panels Panes install file.
Code
function fieldable_panels_panes_uninstall() {
$results = db_query('SELECT name FROM {fieldable_panels_pane_type}');
foreach ($results as $type) {
field_attach_delete_bundle('fieldable_panels_pane', $type->name);
}
// Variables.
variable_del('fieldable_panels_panes_skip_default_type');
variable_del('fpp_allow_reusable_access');
variable_del('fpp_blocks_expose');
variable_del('fpp_hide_contextual_links');
variable_del('fpp_revision_locking');
// Delete any variables that begin with 'fpp_expose_'.
$results = db_query('SELECT name FROM {variable} WHERE name LIKE :var', array(
':var' => 'fpp_expose_%',
))
->fetchCol();
foreach ($results as $var) {
variable_del($var);
}
}