summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/sites/all/modules/ctools/includes/content.inc
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/sites/all/modules/ctools/includes/content.inc')
-rw-r--r--kolab.org/www/drupal-7.26/sites/all/modules/ctools/includes/content.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/sites/all/modules/ctools/includes/content.inc b/kolab.org/www/drupal-7.26/sites/all/modules/ctools/includes/content.inc
index 890ec23..e0e5534 100644
--- a/kolab.org/www/drupal-7.26/sites/all/modules/ctools/includes/content.inc
+++ b/kolab.org/www/drupal-7.26/sites/all/modules/ctools/includes/content.inc
@@ -687,6 +687,11 @@ function ctools_content_get_available_types($contexts = NULL, $has_content = FAL
}
}
+ // Check if the content type provides an access callback.
+ if (isset($subtype['create content access']) && function_exists($subtype['create content access']) && !$subtype['create content access']($plugin, $subtype)) {
+ continue;
+ }
+
// If we made it through all the tests, then we can use this content.
$available[$id][$subtype_id] = $subtype;
}