cms_events.module in Glazed CMS Events 8
Same filename and directory in other branches
Primary module hooks for CMS Events module.
File
cms_events.moduleView source
<?php
/**
* @file
* Primary module hooks for CMS Events module.
*/
/**
* Implements hook_preprocess_views_view_summary().
*
* @see https://www.drupal.org/node/2852451
*/
function cms_events_preprocess_views_view_summary(&$variables) {
if ($variables['view']
->id() == 'cms_events' && $variables['view']->current_display == 'monthly_archive') {
foreach ($variables['rows'] as $index => $row) {
$variables['rows'][$index]->link = date('F, Y', strtotime($row->link . '01'));
}
}
}
Functions
Name![]() |
Description |
---|---|
cms_events_preprocess_views_view_summary | Implements hook_preprocess_views_view_summary(). |