You are here

function twitter_post_admin_settings in Twitter 7.4

Same name and namespace in other branches
  1. 6.5 twitter_post/twitter_post.pages.inc \twitter_post_admin_settings()
  2. 6.3 twitter_post/twitter_post.pages.inc \twitter_post_admin_settings()
  3. 6.4 twitter_post/twitter_post.pages.inc \twitter_post_admin_settings()
  4. 7.3 twitter_post/twitter_post.pages.inc \twitter_post_admin_settings()
  5. 7.5 twitter_post/twitter_post.pages.inc \twitter_post_admin_settings()

Settings form callback

1 string reference to 'twitter_post_admin_settings'
twitter_post_menu in twitter_post/twitter_post.module
Implements hook_menu().

File

twitter_post/twitter_post.pages.inc, line 11
Page callbacks for Twitter Post module.

Code

function twitter_post_admin_settings($form, &$form_state) {
  $form['twitter_post_types'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Node types'),
    '#options' => node_type_get_names(),
    '#default_value' => variable_get('twitter_post_types', array(
      'story' => 'story',
      'blog' => 'blog',
    )),
  );
  $form['twitter_post_default_format'] = array(
    '#type' => 'textfield',
    '#title' => t('Default format string'),
    '#maxlength' => 140,
    '#description' => t('The given text will be posted to twitter.com. You can use !url, !url-alias, !tinyurl, !title, and !user as replacement text.'),
    '#default_value' => variable_get('twitter_post_default_format', 'New post: !title !tinyurl'),
  );
  return system_settings_form($form);
}