Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
290
Merge Requests
290
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
0fef1e1c
Commit
0fef1e1c
authored
Oct 02, 2012
by
jhodgdon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1398404
by batigolix, NROTC_Webmaster, aLearner: API docs cleanup for overlay module
parent
92b6edf4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
55 additions
and
14 deletions
+55
-14
core/modules/overlay/overlay-child-rtl.css
core/modules/overlay/overlay-child-rtl.css
+5
-0
core/modules/overlay/overlay-child.css
core/modules/overlay/overlay-child.css
+5
-0
core/modules/overlay/overlay-child.js
core/modules/overlay/overlay-child.js
+5
-0
core/modules/overlay/overlay-parent.css
core/modules/overlay/overlay-parent.css
+5
-0
core/modules/overlay/overlay-parent.js
core/modules/overlay/overlay-parent.js
+5
-0
core/modules/overlay/overlay.install
core/modules/overlay/overlay.install
+1
-1
core/modules/overlay/overlay.module
core/modules/overlay/overlay.module
+26
-13
core/modules/overlay/overlay.tpl.php
core/modules/overlay/overlay.tpl.php
+3
-0
No files found.
core/modules/overlay/overlay-child-rtl.css
View file @
0fef1e1c
/**
* @file
* RTL styling for Overlay child pages.
*/
html
{
direction
:
rtl
;
}
...
...
core/modules/overlay/overlay-child.css
View file @
0fef1e1c
/**
* @file
* Basic styling for the Overlay child pages.
*/
.js
{
background
:
transparent
!important
;
overflow-y
:
scroll
;
...
...
core/modules/overlay/overlay-child.js
View file @
0fef1e1c
/**
* @file
* Attaches the behaviors for the Overlay child pages.
*/
(
function
(
$
)
{
"
use strict
"
;
...
...
core/modules/overlay/overlay-parent.css
View file @
0fef1e1c
/**
* @file
* Basic styling for the Overlay module.
*/
html
.overlay-open
,
html
.overlay-open
body
{
height
:
100%
;
...
...
core/modules/overlay/overlay-parent.js
View file @
0fef1e1c
/**
* @file
* Attaches the behaviors for the Overlay parent pages.
*/
(
function
(
$
)
{
"
use strict
"
;
...
...
core/modules/overlay/overlay.install
View file @
0fef1e1c
...
...
@@ -2,7 +2,7 @@
/**
* @file
* Install, update
and uninstall functions for the o
verlay module.
* Install, update
, and uninstall functions for the O
verlay module.
*/
/**
...
...
core/modules/overlay/overlay.module
View file @
0fef1e1c
...
...
@@ -331,7 +331,7 @@ function overlay_user_dismiss_message_access() {
}
/**
* Menu callback
; d
ismisses the overlay accessibility message for this user.
* Menu callback
: D
ismisses the overlay accessibility message for this user.
*
* @see overlay_user_dismiss_message_access()
* @see overlay_menu()
...
...
@@ -361,10 +361,12 @@ function overlay_user_dismiss_message() {
* If the current user can access the overlay and has not previously indicated
* that this message should be dismissed, this function returns a message
* containing a link to disable the overlay. Nothing is returned for anonymous
* users, because the links control per-user settings. Therefore, because some
* screen readers are unable to properly read overlay contents, site builders
* are discouraged from granting the "access overlay" permission to the
* anonymous role. See http://drupal.org/node/890284.
* users, because the links control per-user settings. Because some screen
* readers are unable to properly read overlay contents, site builders are
* discouraged from granting the "access overlay" permission to the anonymous
* role.
*
* @see http://drupal.org/node/890284
*/
function
overlay_disable_message
()
{
global
$user
;
...
...
@@ -419,7 +421,13 @@ function overlay_disable_message() {
/**
* Returns the HTML for the message about how to disable the overlay.
*
* @see overlay_disable_message()
* @param $variables
* An associative array with an 'element' element, which itself is an
* associative array containing:
* - profile_link: The link to this user's account.
* - dismiss_message_link: The link to dismiss the overlay.
*
* @ingroup themeable
*/
function
theme_overlay_disable_message
(
$variables
)
{
$element
=
$variables
[
'element'
];
...
...
@@ -505,8 +513,12 @@ function overlay_preprocess_maintenance_page(&$variables) {
}
/**
* Preprocesses template variables for overlay.tpl.php
* Implements template_preprocess_HOOK() for overlay.tpl.php
*
* If the current page request is inside the overlay, add appropriate classes
* to the <body> element, and simplify the page title.
*
* @see template_process_overlay()
* @see overlay.tpl.php
*/
function
template_preprocess_overlay
(
&
$variables
)
{
...
...
@@ -517,20 +529,21 @@ function template_preprocess_overlay(&$variables) {
}
/**
* Processes variables for overlay.tpl.php
* Implements template_process_HOOK() for overlay.tpl.php
*
* Places the rendered HTML for the page body into a top level variable.
*
* @see template_preprocess_overlay()
* @see overlay.tpl.php
*/
function
template_process_overlay
(
&
$variables
)
{
// Place the rendered HTML for the page body into a top level variable.
$variables
[
'page'
]
=
$variables
[
'page'
][
'#children'
];
}
/**
* Implements hook_preprocess_HOOK() for page.tpl.php.
*
*
Hide tabs inside the overlay
.
*
If the current page request is inside the overlay, hide the tabs
.
*
* @see overlay_get_mode()
*/
...
...
@@ -582,7 +595,7 @@ function overlay_page_delivery_callback_alter(&$callback) {
}
/**
*
Delivery callback to display
an empty page.
*
Prints
an empty page.
*
* This function is used to print out a bare minimum empty page which still has
* the scripts and styles necessary in order to trigger the overlay to close.
...
...
@@ -594,7 +607,7 @@ function overlay_deliver_empty_page() {
}
/**
* Get the current overlay mode.
* Get
s
the current overlay mode.
*
* @see overlay_set_mode()
*/
...
...
@@ -787,7 +800,7 @@ function overlay_supplemental_regions() {
}
/**
*
Helper function for returning
a list of page regions related to the overlay.
*
Returns
a list of page regions related to the overlay.
*
* @param $type
* The type of regions to return. This can either be 'overlay_regions' or
...
...
core/modules/overlay/overlay.tpl.php
View file @
0fef1e1c
...
...
@@ -9,6 +9,9 @@
* - $page: The rendered page content.
* - $tabs (array): Tabs linking to any sub-pages beneath the current page
* (e.g., the view and edit tabs when displaying a node).
* Helper variables:
* - $classes_array: Array of HMTL class attribute values. It is flattened into
* a string within the variable $classes.
*
* @see template_preprocess()
* @see template_preprocess_overlay()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment