function styles_uninstall in Styles 7.2
Same name and namespace in other branches
- 6.2 styles.install \styles_uninstall()
- 6 styles.install \styles_uninstall()
- 7 styles.install \styles_uninstall()
Implement hook_uninstall().
File
- ./
styles.install, line 18 - Install, update and uninstall functions for the Styles module.
Code
function styles_uninstall() {
// #1147284: Manually load styles.module for styles_variable_default().
drupal_load('module', 'styles');
foreach (styles_variable_default() as $variable => $value) {
styles_variable_del($variable);
}
return array(
array(
'success' => TRUE,
'query' => "Deleted all variables in the Styles namespace.",
),
);
}