function auto_nodetitle_uninstall in Automatic Nodetitles 8
Same name and namespace in other branches
- 5 auto_nodetitle.install \auto_nodetitle_uninstall()
- 6 auto_nodetitle.install \auto_nodetitle_uninstall()
- 7 auto_nodetitle.install \auto_nodetitle_uninstall()
Implements hook_uninstall().
File
- ./
auto_nodetitle.install, line 18 - Installation file for the automatic nodetitle module
Code
function auto_nodetitle_uninstall() {
foreach (node_type_get_names('names') as $type => $type_name) {
\Drupal::config('auto_nodetitle.node.' . $type)
->delete();
\Drupal::config('auto_nodetitle.pattern.node.' . $type)
->delete();
\Drupal::config('auto_nodetitle.php.node.' . $type)
->delete();
}
}