Skip to content

Commit

Permalink
Issue #1332648 by sven.lauer, jhodgdon, xjm: Clean up API docs for co…
Browse files Browse the repository at this point in the history
…ntextual module.
  • Loading branch information
webchick committed Nov 24, 2011
1 parent ccb1f60 commit e1616f4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions modules/contextual/contextual-rtl.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @file
* Stylesheet specific to right-to-left languages.
*/

div.contextual-links-wrapper {
left: 5px;
Expand Down
4 changes: 4 additions & 0 deletions modules/contextual/contextual.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @file
* Stylesheet for the Contextual module.
*/

/**
* Contextual links regions.
Expand Down
7 changes: 6 additions & 1 deletion modules/contextual/contextual.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
/**
* @file
* Attaches behaviors for the Contextual module.
*/

(function ($) {

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 = {
attach: function (context) {
Expand Down
3 changes: 2 additions & 1 deletion modules/contextual/contextual.module
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function contextual_element_info() {
}

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

0 comments on commit e1616f4

Please sign in to comment.