Skip to content

Instantly share code, notes, and snippets.

@bangpound
Created December 19, 2009 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bangpound/259899 to your computer and use it in GitHub Desktop.
Save bangpound/259899 to your computer and use it in GitHub Desktop.
show variables that aren't strongarmed. delete variables from database that are.
foreach (ctools_export_load_object('variable') as $variable) {
if ($variable->export_type == EXPORT_IN_DATABASE) {
dpm($variable->name);
}
if ($variable->export_type == EXPORT_IN_CODE) {
variable_del($variable->name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment