blob: 3a2398a1fd35416c07a946a1d03d89c5d5dedab1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
/**
* @file
* Theme function for wrapping menu local actions.
*/
/**
* Delegated implementation of hook_theme()
*/
function ctools_action_links_theme(&$items) {
$items['ctools_menu_local_actions_wrapper'] = array(
'render element' => 'links',
'file' => 'includes/action-links.theme.inc',
);
}
/**
* Render a menu local actions wrapper.
*
* @param $links
* Local actions links.
* @param $attributes
* An array of attributes to append to the wrapper.
*/
function theme_ctools_menu_local_actions_wrapper($variables) {
$links = drupal_render($variables['links']);
if (empty($links)) {
return;
}
return '<ul class="action-links">' . $links . '</ul>';
}
|