When uninstalling the module, I received a white screen with the error "Call to undefined function styles_variable_default()" in styles.install.

Comments

4kant’s picture

Submit - the same here

benlotter’s picture

I am unable to uninstall this module through the usual interface.

Fatal error: Call to undefined function styles_variable_default() in /.../modules/styles/styles.install on line 19
benlotter’s picture

The workaround for me was to comment out lines 19 - 21 in styles.install. This allowed me to uninstall the module. I did not check the database to see if there are any leftover variables.

This module was installed for me by theme helper module. I don't know what it does so I uninstalled it.

/**
 * Implement hook_uninstall().
 */
function styles_uninstall() {
  //foreach (styles_variable_default() as $variable => $value) {
  //  styles_variable_del($variable);
  //}
  return array(array('success' => TRUE, 'query' => "Deleted all variables in the Styles namespace."));
}