You are here

cms_events.module in Glazed CMS Events 8

Same filename and directory in other branches
  1. 7 cms_events.module

Primary module hooks for CMS Events module.

File

cms_events.module
View 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

Namesort descending Description
cms_events_preprocess_views_view_summary Implements hook_preprocess_views_view_summary().