You are here

function feed_import_base_settings_form in Feed Import 8

Same name and namespace in other branches
  1. 7.3 feed_import_base/feed_import_base.module \feed_import_base_settings_form()

Settings form

2 string references to 'feed_import_base_settings_form'
FeedImportBaseSettingsForm::getFormId in feed_import_base/src/Form/FeedImportBaseSettingsForm.php
Returns a unique string identifying the form.
feed_import_base_menu in feed_import_base/feed_import_base.module
Implements hook_menu().

File

feed_import_base/feed_import_base.module, line 390
Basic settings for feed import base module

Code

function feed_import_base_settings_form($form, &$form_state) {

  // @FIXME
  // // @FIXME
  // // This looks like another module's variable. You'll need to rewrite this call
  // // to ensure that it uses the correct configuration object.
  // $form['feed_import_reports'] = array(
  //     '#type' => 'checkbox',
  //     '#default_value' => variable_get('feed_import_reports', TRUE),
  //     '#title' => t('Provide import reports'),
  //     '#description' => t('These are log reports.'),
  //   );
  // @FIXME
  // // @FIXME
  // // This looks like another module's variable. You'll need to rewrite this call
  // // to ensure that it uses the correct configuration object.
  // $form['feed_import_use_cron'] = array(
  //     '#type' => 'checkbox',
  //     '#default_value' => variable_get('feed_import_use_cron', 0),
  //     '#title' => t('Cron import'),
  //     '#description' => t('Run import for enabled feeds at cron'),
  //   );
  $form['container'] = array(
    '#type' => 'fieldset',
    '#states' => array(
      'invisible' => array(
        'input[name="feed_import_use_cron"]' => array(
          'checked' => FALSE,
        ),
      ),
    ),
  );

  // @FIXME
  // // @FIXME
  // // This looks like another module's variable. You'll need to rewrite this call
  // // to ensure that it uses the correct configuration object.
  // $form['container']['feed_import_time_settings'] = array(
  //     '#type' => 'radios',
  //     '#options' => array(t('From time to time'), t('Specified time interval')),
  //     '#default_value' => variable_get('feed_import_time_settings', 0),
  //     '#title' => t('When feeds can be imported'),
  //   );
  // @FIXME
  // // @FIXME
  // // This looks like another module's variable. You'll need to rewrite this call
  // // to ensure that it uses the correct configuration object.
  // $form['container']['feed_import_time_between_imports'] = array(
  //     '#type' => 'textfield',
  //     '#default_value' => variable_get('feed_import_time_between_imports', 3600),
  //     '#title' => t('Time between two imports at cron (seconds)'),
  //     '#description' => t('Time betwen two cron imports.'),
  //     '#states' => array(
  //       'visible' => array(
  //         'input[name="feed_import_time_settings"]' => array('value' => 0),
  //       ),
  //     ),
  //   );
  // @FIXME
  // // @FIXME
  // // This looks like another module's variable. You'll need to rewrite this call
  // // to ensure that it uses the correct configuration object.
  // $form['container']['feed_import_interval_start'] = array(
  //     '#type' => 'textfield',
  //     '#default_value' => variable_get('feed_import_interval_start', '00:00'),
  //     '#title' => t('Start time'),
  //     '#description' => t('Format is hh:mm.'),
  //     '#states' => array(
  //       'visible' => array(
  //         'input[name="feed_import_time_settings"]' => array('value' => 1),
  //       ),
  //     ),
  //   );
  // @FIXME
  // // @FIXME
  // // This looks like another module's variable. You'll need to rewrite this call
  // // to ensure that it uses the correct configuration object.
  // $form['container']['feed_import_interval_stop'] = array(
  //     '#type' => 'textfield',
  //     '#default_value' => variable_get('feed_import_interval_stop', '24:00'),
  //     '#title' => t('End time'),
  //     '#description' => t('Format is hh:mm. This must be greater than start time.'),
  //     '#states' => array(
  //       'visible' => array(
  //         'input[name="feed_import_time_settings"]' => array('value' => 1),
  //       ),
  //     ),
  //   );
  // @FIXME
  // // @FIXME
  // // This looks like another module's variable. You'll need to rewrite this call
  // // to ensure that it uses the correct configuration object.
  // $form['feed_import_delete_items_per_cron'] = array(
  //     '#type' => 'textfield',
  //     '#default_value' => variable_get('feed_import_delete_items_per_cron', 300),
  //     '#title' => t('Expired items delete per cron'),
  //     '#description' => t('How many expired items to delete when cron runs.'),
  //     '#required' => TRUE,
  //   );
  $form['feed_import_filters_dir'] = array(
    '#type' => 'textfield',
    '#default_value' => _feed_import_base_get_filters_dir(),
    '#title' => t('Extra filters base path'),
    '#description' => t('Where to look for filter files.'),
  );

  // @FIXME
  // // @FIXME
  // // This looks like another module's variable. You'll need to rewrite this call
  // // to ensure that it uses the correct configuration object.
  // $form['feed_import_let_overlap'] = array(
  //     '#type' => 'select',
  //     '#multiple' => TRUE,
  //     '#options' => FeedImport::getAllEntities(),
  //     '#default_value' => variable_get('feed_import_let_overlap', array()),
  //     '#title' => t('Allow import overlap for specified entities'),
  //     '#description' => t('This is not indicated for nodes.'),
  //   );
  // @FIXME
  // // @FIXME
  // // This looks like another module's variable. You'll need to rewrite this call
  // // to ensure that it uses the correct configuration object.
  // $form['feed_import_invoke_hooks'] = array(
  //     '#type' => 'checkbox',
  //     '#default_value' => variable_get('feed_import_invoke_hooks', FALSE),
  //     '#title' => t('Invoke hooks on import sucess or error'),
  //     '#description' => t('This can be useful for sending alerts.'),
  //   );
  return system_settings_form($form);
}