Fix map marker content
Refactor map marker view mode from full view to teaser, remove 'read more' and 'login or register' links of teaser view. Change-Id: I66180616f8fbcd841841c423a9c2059bf0028f73
This commit is contained in:
parent
8e1c074e2d
commit
cf050bd27c
@ -117,6 +117,7 @@ function groups_directory_views_default_views() {
|
||||
$handler->display->display_options['style_options']['data_source'] = 'field_geofield';
|
||||
$handler->display->display_options['style_options']['name_field'] = 'title';
|
||||
$handler->display->display_options['style_options']['description_field'] = '#rendered_entity';
|
||||
$handler->display->display_options['style_options']['view_mode'] = 'teaser';
|
||||
$handler->display->display_options['style_options']['map'] = 'mapbox-warden';
|
||||
$handler->display->display_options['style_options']['icon'] = array(
|
||||
'iconUrl' => '',
|
||||
|
18
modules/groups/groups_groups/groups_groups.install
Normal file
18
modules/groups/groups_groups/groups_groups.install
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Implements hook_instal()
|
||||
*
|
||||
*/
|
||||
function groups_groups_install() {
|
||||
groups_groups_update_7301();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set default display settings for group content type and
|
||||
* hide author and date information.
|
||||
*/
|
||||
function groups_groups_update_7301() {
|
||||
$v = variable_get('node_submitted_group', 0);
|
||||
variable_set('node_submitted_group', $v);
|
||||
}
|
@ -106,6 +106,17 @@ function openstack_preprocess_node_event(&$variables, $hook) {
|
||||
// die('-y-');
|
||||
}
|
||||
|
||||
/**
|
||||
* Preprocess group node, remove 'read more' and 'comment login' links
|
||||
* from teaser.
|
||||
*/
|
||||
function openstack_preprocess_node_group(&$variables, $hook) {
|
||||
if ($variables['view_mode'] == 'teaser') {
|
||||
unset($variables['content']['links']['node']['#links']['node-readmore']);
|
||||
unset($variables['content']['links']['comment']['#links']['comment_forbidden']);
|
||||
}
|
||||
}
|
||||
|
||||
function openstack_preprocess_views_view(&$variables) {
|
||||
$view = $variables['view'];
|
||||
if ($view->name == 'commons_events_upcoming') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user