function patterns_examples_disable in Patterns 7
Same name and namespace in other branches
- 7.2 patterns_examples/patterns_examples.install \patterns_examples_disable()
Implements hook_uninstall().
File
- patterns_examples/
patterns_examples.install, line 21
Code
function patterns_examples_disable() {
$example_path = drupal_get_path('module', 'patterns_examples');
$ps = patterns_db_get_patterns();
foreach ($ps as $p) {
if (strpos($p->file, $example_path) !== FALSE) {
patterns_db_remove_pattern($p->pid);
}
}
}