Mercurial > hg > rr-repo
view sites/all/modules/ctools/includes/action-links.theme.inc @ 11:b0ee71395280
deleted .DS_Store files
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Mon, 28 Oct 2013 16:12:13 +0000 |
parents | ff03f76ab3fe |
children |
line wrap: on
line source
<?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>'; }