You are here

function theme_node_gallery_api_file_display_link in Node Gallery 7

Add link to file display.

Parameters

array $vars: theme variables

1 theme call to theme_node_gallery_api_file_display_link()
node_gallery_api_file_view in ./node_gallery_api.module
Implements hook_file_view().

File

theme/theme.inc, line 285
Node gallery theme functions

Code

function theme_node_gallery_api_file_display_link($vars) {
  $element = $vars['element'];
  $children = drupal_render($element['#contents']);
  $element['#uri']['options']['html'] = TRUE;
  return l($children, $element['#uri']['path'], $element['#uri']['options']);
}