You are here

function fe_date_features_api in Features Extra 7

Implements hook_features_api().

File

fe_date/fe_date.module, line 17
Features export for date components.

Code

function fe_date_features_api() {
  $components['fe_date_date_format_types'] = array(
    'name' => t('Date format types'),
    'feature_source' => TRUE,
    'default_hook' => 'date_format_types',
    'default_file' => FEATURES_DEFAULTS_INCLUDED_COMMON,
  );
  $components['fe_date_custom_date_formats'] = array(
    'name' => t('Custom date formats'),
    'feature_source' => TRUE,
    'default_hook' => 'fe_date_custom_date_formats',
    'default_file' => FEATURES_DEFAULTS_INCLUDED_COMMON,
  );
  if (module_exists('locale')) {
    $components['fe_date_locale_date_format'] = array(
      'name' => t('Locale date format'),
      'feature_source' => TRUE,
      'default_hook' => 'fe_date_locale_date_format',
      'default_file' => FEATURES_DEFAULTS_INCLUDED_COMMON,
    );
  }
  return $components;
}