You are here

function subscriptions_intervals in Subscriptions 5.2

Same name and namespace in other branches
  1. 6 subscriptions.admin.inc \subscriptions_intervals()
  2. 7 subscriptions.admin.inc \subscriptions_intervals()
  3. 2.0.x subscriptions.admin.old.php \subscriptions_intervals()

Provide the form definition for admin/settings/subscriptions/intervals.

Called by _subscriptions_menu() in subscriptions.module.

See also

_subscriptions_menu()

1 string reference to 'subscriptions_intervals'
subscriptions_menu in ./subscriptions.module
Implementation of hook_menu().

File

./subscriptions.admin.inc, line 568

Code

function subscriptions_intervals() {
  $default = '';
  foreach (_subscriptions_send_intervals() as $interval => $text) {
    $default .= "{$interval}|{$text}\n";
  }
  $form['intervals'] = array(
    '#type' => 'textarea',
    '#cols' => 40,
    '#default_value' => $default,
    '#description' => t('Every line has the format of seconds|human readable text'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}