You are here

function feed_import_settings_form in Feed Import 7

Same name and namespace in other branches
  1. 7.2 feed_import.module \feed_import_settings_form()

Settings form

1 string reference to 'feed_import_settings_form'
feed_import_menu in ./feed_import.module
Implements hook_menu().

File

./feed_import.module, line 354
User interface, cron functions for feed_import module

Code

function feed_import_settings_form($form, &$form_state) {
  $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['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.'),
  );
  $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 (seconds)'),
    '#description' => t('How many expired items to delete when cron runs.'),
  );
  $form['feed_import_insert_hashes_chunk'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('feed_import_insert_hashes_chunk', 500),
    '#title' => t('Chunk size for inserting hashes'),
    '#description' => t('How many items to insert at once'),
  );
  $form['feed_import_update_ids_chunk'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('feed_import_update_ids_chunk', 1000),
    '#title' => t('Chunk size for updating expire time'),
    '#description' => t('How many items to update at once'),
  );
  $form['feed_import_hash_property'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('feed_import_hash_property', '_feed_item_hash'),
    '#title' => t('Tomporary property wich holds item hash'),
    '#description' => t('Change this only if you already have a property named like this.'),
  );
  $form['feed_import_field_param_name'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('feed_import_field_param_name', '[field]'),
    '#title' => t('Param name for filters'),
    '#description' => t('Enter this when using filters and you want to send extracted field value as argument.'),
  );
  $form['feed_import_entity_info_keep'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('feed_import_entity_info_keep', 0),
    '#title' => t('Keep entity info in cache (seconds)'),
    '#description' => t('Entity info is used for UI'),
  );
  $form['feed_import_processFeedChunked_xml_head'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('feed_import_processFeedChunked_xml_head', '<?xml version="1.0" encoding="utf-8"?>'),
    '#title' => t('If you use processFeedChunked function then set xml properties'),
    '#description' => t('Change xml properties like encoding.'),
  );
  $form['feed_import_processFeedChunked_chunk_length'] = array(
    '#type' => 'textfield',
    '#default_value' => variable_get('feed_import_processFeedChunked_chunk_length', 8192),
    '#title' => t('If you use processFeedChunked function then set chunk size in bytes'),
    '#description' => t('How many bytes to read in each chunk (default 8192 = 8k)'),
  );
  return system_settings_form($form);
}