You are here

function ultimate_cron_import_form in Ultimate Cron 6

Same name and namespace in other branches
  1. 8 ultimate_cron.admin.inc \ultimate_cron_import_form()
  2. 7 ultimate_cron.admin.inc \ultimate_cron_import_form()

Import form.

1 string reference to 'ultimate_cron_import_form'
ultimate_cron_menu in ./ultimate_cron.module
Implementation of hook_menu().

File

./ultimate_cron.admin.inc, line 599

Code

function ultimate_cron_import_form() {
  $form = array();
  $options = array();
  if (module_exists('parallel_cron')) {
    $options['parallel_cron'] = 'Parallel Cron';
  }
  if ($options) {
    $form['import']['module'] = array(
      '#type' => 'select',
      '#options' => $options,
      '#title' => t('Module'),
      '#description' => t('Module to import settings from'),
    );
    $form['import']['submit'] = array(
      '#type' => 'submit',
      '#submit' => array(
        'ultimate_cron_import_form_submit',
      ),
      '#value' => t('Import'),
    );
  }
  return $form;
}