diff --git a/core/modules/contextual/contextual-rtl.css b/core/modules/contextual/contextual-rtl.css index 96ffef5..83c0f1e 100644 --- a/core/modules/contextual/contextual-rtl.css +++ b/core/modules/contextual/contextual-rtl.css @@ -1,4 +1,8 @@ - +/** + * @file + * Stylesheet specific to right-to-left languages. + */ + div.contextual-links-wrapper { left: 5px; right: auto; diff --git a/core/modules/contextual/contextual.css b/core/modules/contextual/contextual.css index fd71514..3829328 100644 --- a/core/modules/contextual/contextual.css +++ b/core/modules/contextual/contextual.css @@ -1,3 +1,7 @@ +/** + * @file + * Stylesheet for the Contextual module. + */ /** * Contextual links regions. diff --git a/core/modules/contextual/contextual.js b/core/modules/contextual/contextual.js index ee5b7a0..ebe5091 100644 --- a/core/modules/contextual/contextual.js +++ b/core/modules/contextual/contextual.js @@ -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) { diff --git a/core/modules/contextual/contextual.module b/core/modules/contextual/contextual.module index e3c0f8b..7b14a3f 100644 --- a/core/modules/contextual/contextual.module +++ b/core/modules/contextual/contextual.module @@ -77,7 +77,7 @@ function contextual_element_info() { } /** - * Template variable preprocessor for contextual links. + * Implements hook_preprocess(). * * @see contextual_pre_render_links() */ @@ -114,7 +114,7 @@ function contextual_preprocess(&$variables, $hook) { } /** - * Build a renderable array for contextual links. + * Pre-render callback: Builds a renderable array for contextual links. * * @param $element * A renderable array containing a #contextual_links property, which is a @@ -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.