Projet

Général

Profil

Paste
Télécharger (1,12 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / bootstrap / templates / admin_menu / admin-menu-links.vars.php @ 024de6ea

1
<?php
2
/**
3
 * @file
4
 * Stub file for "admin_menu_links" theme hook [pre]process functions.
5
 */
6

    
7
/**
8
 * Pre-processes variables for the "admin_menu_links" theme hook.
9
 *
10
 * @param array $variables
11
 *   - elements: A renderable array of links using the following keys:
12
 *     - #attributes: Optional array of attributes for the list item, processed
13
 *       via drupal_attributes().
14
 *     - #title: Title of the link, passed to l().
15
 *     - #href: Optional path of the link, passed to l(). When omitted, the
16
 *       element's '#title' is rendered without link.
17
 *     - #description: Optional alternative text for the link, passed to l().
18
 *     - #options: Optional alternative text for the link, passed to l().
19
 *     The array key of each child element itself is passed as path for l().
20
 *
21
 * @see theme_admin_menu_links()
22
 *
23
 * @ingroup theme_preprocess
24
 */
25
function bootstrap_preprocess_admin_menu_links(&$variables) {
26
  $elements = &$variables['elements'];
27
  foreach (element_children($elements) as $child) {
28
    $elements[$child]['#bootstrap_ignore_pre_render'] = TRUE;
29
    $elements[$child]['#bootstrap_ignore_process'] = TRUE;
30
  }
31
}