You are here

function tweet_feed_settings_form in Tweet Feed 7.3

Same name and namespace in other branches
  1. 6 tweet_feed.module \tweet_feed_settings_form()
  2. 7 tweet_feed.module \tweet_feed_settings_form()
  3. 7.2 tweet_feed_admin.inc \tweet_feed_settings_form()

General Settings Form

A place to set up various global options for all tweet feeds

1 string reference to 'tweet_feed_settings_form'
tweet_feed_menu in ./tweet_feed.module
Implements hook_menu().

File

./tweet_feed_admin.inc, line 521

Code

function tweet_feed_settings_form($form, &$form_state) {
  $form['tweet_feed_get_tweeter_profiles'] = array(
    '#type' => 'checkbox',
    '#title' => t('Save user profile information for each unique tweeter in feeds.'),
    '#description' => t('This will create a node record for every person who tweets in your feed.'),
    '#default_value' => variable_get('tweet_feed_get_tweeter_profiles', 0),
  );
  $form['tweet_feed_fetch_images'] = array(
    '#type' => 'checkbox',
    '#title' => t('Download images that are used in tweets to the local file system.'),
    '#description' => t('This will fetch images so you can re-use them in other content.'),
    '#default_value' => variable_get('tweet_feed_fetch_images', 1),
  );
  $form['tweet_feed_disable_cron'] = array(
    '#type' => 'checkbox',
    '#title' => t('Disable running Tweet Feed cron jobs when the general cron is run.'),
    '#description' => t('Doing this will disable Drupal from doing imports during cron runs. You can still import tweets on a cron using Tweet Feed\'s drush commands.'),
    '#default_value' => variable_get('tweet_feed_disable_cron', 0),
  );
  return system_settings_form($form);
}