You are here

public function countdown_box::options_defaults in Countdown 7.2

Implementation of boxes_box::options_defaults().

Overrides boxes_box::options_defaults

File

plugins/countdown_box.inc, line 11

Class

countdown_box
Countdown box.

Code

public function options_defaults() {

  // Use the current time as a default.
  $date_default = new dateObject(time(), new DateTimeZone('UTC'));
  return array(
    'title' => '',
    'countdown_target' => $date_default
      ->format(DATE_FORMAT_DATETIME),
    'countdown_plugin' => NULL,
    // The following options do not need to be supported by each countdown
    // plugin, and should be declared in the plugin's 'supported_options'
    // property.
    // The elements to show in the countdown.
    'countdown_elements' => drupal_map_assoc(array(
      'day',
      'hour',
      'minute',
      'second',
    )),
    'event_name' => NULL,
    'event_description' => t('Until @event_name'),
    'event_url' => '',
  );
}