Issue #1332648 by sven.lauer, jhodgdon, xjm: Clean up API docs for contextual module.

merge-requests/26/head
webchick 2011-11-24 13:31:28 -08:00
parent ccb1f60130
commit e1616f4d13
4 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,7 @@
/**
* @file
* Stylesheet specific to right-to-left languages.
*/
div.contextual-links-wrapper { div.contextual-links-wrapper {
left: 5px; left: 5px;

View File

@ -1,3 +1,7 @@
/**
* @file
* Stylesheet for the Contextual module.
*/
/** /**
* Contextual links regions. * Contextual links regions.

View File

@ -1,9 +1,14 @@
/**
* @file
* Attaches behaviors for the Contextual module.
*/
(function ($) { (function ($) {
Drupal.contextualLinks = Drupal.contextualLinks || {}; Drupal.contextualLinks = Drupal.contextualLinks || {};
/** /**
* Attach outline behavior for regions associated with contextual links. * Attaches outline behavior for regions associated with contextual links.
*/ */
Drupal.behaviors.contextualLinks = { Drupal.behaviors.contextualLinks = {
attach: function (context) { attach: function (context) {

View File

@ -77,7 +77,7 @@ function contextual_element_info() {
} }
/** /**
* Template variable preprocessor for contextual links. * Implements hook_preprocess().
* *
* @see contextual_pre_render_links() * @see contextual_pre_render_links()
*/ */
@ -132,6 +132,7 @@ function contextual_preprocess(&$variables, $hook) {
* A renderable array representing contextual links. * A renderable array representing contextual links.
* *
* @see menu_contextual_links() * @see menu_contextual_links()
* @see contextual_element_info()
*/ */
function contextual_pre_render_links($element) { function contextual_pre_render_links($element) {
// Retrieve contextual menu links. // Retrieve contextual menu links.