function cms_events_preprocess_views_view_summary in Glazed CMS Events 8
Implements hook_preprocess_views_view_summary().
See also
https://www.drupal.org/node/2852451
File
- ./
cms_events.module, line 13 - Primary module hooks for CMS Events module.
Code
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'));
}
}
}