summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexweber2013-02-08 20:17:51 (GMT)
committer Joachim Noreiko2013-02-08 20:17:51 (GMT)
commit4137641df0a7069f5e221c23c0c35127d621262b (patch)
tree37e43642d3826d1e095ae0cfd8d83fbaec65d04b
parent2c308c0311ed428109361385235a1f43a966dd5e (diff)
Issue #1905766 by alexweber: Removed declaration of flag type for taxonomy vocabularies.
-rw-r--r--flag.flag.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/flag.flag.inc b/flag.flag.inc
index c7ff2ec..242ab77 100644
--- a/flag.flag.inc
+++ b/flag.flag.inc
@@ -62,6 +62,13 @@ function flag_flag_type_info_alter(&$definitions) {
// Only add flag support for entities that don't yet have them, and which
// are non-config entities.
if (!isset($definitions[$entity_type]) && empty($entity_info['configuration'])) {
+ // We deliberately exclude taxonomy vocabularies from the list of
+ // supported entity types because they aren't fieldable or directly
+ // viewable, which makes them impossible to flag.
+ if ($entity_type === 'taxonomy_vocabulary') {
+ continue;
+ }
+
$definitions[$entity_type] = array(
'title' => $entity_info['label'],
'description' => t('@entity-type entity', array('@entity-type' => $entity_info['label'])),