function theme_openlayers_ui_form_layer_description in Openlayers 7.2
Same name and namespace in other branches
- 6.2 modules/openlayers_ui/includes/openlayers_ui.theme.inc \theme_openlayers_ui_form_layer_description()
Theme function for form description of layers
1 theme call to theme_openlayers_ui_form_layer_description()
- openlayers_ui_get_layer_options in modules/
openlayers_ui/ openlayers_ui.module - Get layer options.
File
- modules/
openlayers_ui/ includes/ openlayers_ui.theme.inc, line 13 - This file holds the theme functions for openlayers ui module
Code
function theme_openlayers_ui_form_layer_description($args) {
if (!empty($args['layer_link'])) {
$args['layer_title'] = l($args['layer_title'], $args['layer_link'], array(
'query' => drupal_get_destination(),
));
}
return $args['layer_title'] . ($args['layer_description'] ? ' <span class="openlayers-form-layer-description">' . $args['layer_description'] . '</span>' : '');
}