You are here

cms_events.module in Glazed CMS Events 7

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

File

cms_events.module
View source
<?php

/**
 * @file
 * Code for the CMS Events feature.
 */
include_once 'cms_events.features.inc';

/*
 * Implements hook_date_format_types
 * @see https://www.drupal.org/project/features/issues/911940
 */
function cms_events_date_format_types() {
  return array(
    'cms_events_month_year' => t('Month Year'),
    'cms_events_month_day' => t('Month Day'),
  );
}

/*
 * Implements hook_date_formats
 */
function cms_events_date_formats() {
  $formats = array();

  // Short date formats.
  $formats[] = array(
    'type' => 'cms_events_month_year',
    'format' => 'F Y',
    'locales' => array(),
  );
  $formats[] = array(
    'type' => 'cms_events_month_day',
    'format' => 'M d',
    'locales' => array(),
  );
  return $formats;
}