summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/contextual/contextual.api.php
diff options
context:
space:
mode:
authorTorsten Grote <grote@kolabsys.com>2014-01-29 15:00:00 (GMT)
committerTorsten Grote <grote@kolabsys.com>2014-01-29 15:00:00 (GMT)
commitd9e4a0f1b5f45b2e3fed0908a69dad264d40b15b (patch)
tree76d774e7d2ce4ba7c0754c590a6b730b6f6ceed9 /kolab.org/www/drupal-7.26/modules/contextual/contextual.api.php
parent5145fb6b6b03f545d7b82db89850dac1b3b49d78 (diff)
downloadkolab.org-www-d9e4a0f1b5f45b2e3fed0908a69dad264d40b15b.tar.gz
add new drupal version
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/contextual/contextual.api.php')
-rw-r--r--kolab.org/www/drupal-7.26/modules/contextual/contextual.api.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/contextual/contextual.api.php b/kolab.org/www/drupal-7.26/modules/contextual/contextual.api.php
new file mode 100644
index 0000000..e8f33ee
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/contextual/contextual.api.php
@@ -0,0 +1,40 @@
+<?php
+
+/**
+ * @file
+ * Hooks provided by Contextual module.
+ */
+
+/**
+ * @addtogroup hooks
+ * @{
+ */
+
+/**
+ * Alter a contextual links element before it is rendered.
+ *
+ * This hook is invoked by contextual_pre_render_links(). The renderable array
+ * of #type 'contextual_links', containing the entire contextual links data that
+ * is passed in by reference. Further links may be added or existing links can
+ * be altered.
+ *
+ * @param $element
+ * A renderable array representing the contextual links.
+ * @param $items
+ * An associative array containing the original contextual link items, as
+ * generated by menu_contextual_links(), which were used to build
+ * $element['#links'].
+ *
+ * @see hook_menu_contextual_links_alter()
+ * @see contextual_pre_render_links()
+ * @see contextual_element_info()
+ */
+function hook_contextual_links_view_alter(&$element, $items) {
+ // Add another class to all contextual link lists to facilitate custom
+ // styling.
+ $element['#attributes']['class'][] = 'custom-class';
+}
+
+/**
+ * @} End of "addtogroup hooks".
+ */