You are here

function _smart_date_recur_get_freq_defaults in Smart Date 3.1.x

Same name and namespace in other branches
  1. 3.2.x modules/smart_date_recur/smart_date_recur.module \_smart_date_recur_get_freq_defaults()
  2. 3.3.x modules/smart_date_recur/smart_date_recur.module \_smart_date_recur_get_freq_defaults()
  3. 3.4.x modules/smart_date_recur/smart_date_recur.module \_smart_date_recur_get_freq_defaults()

Helper function to centralize default frequency values.

3 calls to _smart_date_recur_get_freq_defaults()
smart_date_recur_field_widget_settings_summary_alter in modules/smart_date_recur/smart_date_recur.module
Implements hook_field_formatter_settings_summary_alter().
smart_date_recur_field_widget_third_party_settings_form in modules/smart_date_recur/smart_date_recur.module
Implements hook_field_widget_third_party_settings_form().
smart_date_recur_widget_extra_fields in modules/smart_date_recur/smart_date_recur.module
Helper function to add extra fields to Smart Date widgets.

File

modules/smart_date_recur/smart_date_recur.module, line 843
Field hooks for a field that stores a start and end date as timestamps.

Code

function _smart_date_recur_get_freq_defaults() {
  return [
    'DAILY',
    'WEEKLY',
    'MONTHLY',
    'YEARLY',
  ];
}