'contextual_links', '#contextual_links' => array( 'openlayers' => array( 'admin/structure/openlayers/maps/list', array($map['map_name']), ), ) ); } $variables['links'] = render($links); $variables['container']['classes'] = implode(" ", array( 'contextual-links-region', 'openlayers-container', 'openlayers-container-map-' . $css_map_name )); $variables['container']['width'] = $map['width']; $variables['container']['height'] = $map['height']; $variables['container']['id'] = 'openlayers-container-' . $map['id']; $variables['classes_array'][] = 'openlayers-map-' . $css_map_name; } /** * Theme function to be able to override styles */ function theme_openlayers_styles($args) { return $args['styles']; }