File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ function flag_config_info() {
18
18
'label' => t('Flag settings'),
19
19
'group' => t('Configuration'),
20
20
);
21
+ $prefixes['flag.flag'] = array(
22
+ 'name_key' => 'name',
23
+ 'label_key' => 'title',
24
+ 'group' => t('Flags'),
25
+ );
21
26
return $prefixes;
22
27
}
23
28
Original file line number Diff line number Diff line change @@ -52,6 +52,20 @@ function flag_bookmark_enable() {
52
52
}
53
53
}
54
54
55
+ /**
56
+ * Implements hook_uninstall().
57
+ */
58
+ function flag_bookmark_uninstall() {
59
+ // Remove default, un-modified views.
60
+ foreach (array('flag_bookmarks', 'flag_bookmarks_tab') as $view) {
61
+ $config = config('views.view.' . $view);
62
+ // Only update if view isn't overridden (VIEWS_STORAGE_OVERRIDE).
63
+ if ($config->get('storage') != 2) {
64
+ $config->delete();
65
+ }
66
+ }
67
+ }
68
+
55
69
/**
56
70
* Returns some node types to which the demonstration 'bookmarks' flag will
57
71
* apply.
@@ -260,7 +274,7 @@ function flag_bookmark_update_1000() {
260
274
),
261
275
)
262
276
);
263
- $config->save();
277
+ $config->save();
264
278
}
265
279
266
280
$config = config('views.view.flag_bookmarks');
@@ -432,4 +446,4 @@ function flag_bookmark_update_1000() {
432
446
);
433
447
$config->save();
434
448
}
435
- }
449
+ }
You can’t perform that action at this time.
0 commit comments