You are here

function easy_social_admin_config_extra_twitter in Easy Social 7.2

Form callback. Extra settings for Twitter Widget.

See also

easy_social_menu()

1 string reference to 'easy_social_admin_config_extra_twitter'
easy_social_menu in ./easy_social.module
Implements hook_menu().

File

includes/easy_social.admin.inc, line 188
Easy Social admin settings.

Code

function easy_social_admin_config_extra_twitter() {
  $form = array();
  $form['easy_social_twitter_title'] = array(
    '#markup' => '<h4>' . t('Twitter widget settings') . '</h4>',
  );
  $form['easy_social_twitter_info'] = array(
    '#markup' => t('For more information check out the official Twitter widget <a href="!link" target="_blank">documentation</a>.', array(
      '!link' => 'https://twitter.com/about/resources/tweetbutton',
    )),
  );
  $form['easy_social_twitter_account_via'] = array(
    '#type' => 'textfield',
    '#title' => t('Mention account'),
    '#description' => t('Type the account name without the @'),
    '#size' => 40,
    '#maxlength' => 255,
    '#default_value' => variable_get_value('easy_social_twitter_account_via'),
  );
  $form['easy_social_twitter_account_related'] = array(
    '#type' => 'textfield',
    '#title' => t('Related account'),
    '#description' => t('Type the account name without the @'),
    '#size' => 40,
    '#maxlength' => 255,
    '#default_value' => variable_get_value('easy_social_twitter_account_related'),
  );
  $form['easy_social_twitter_account_description'] = array(
    '#type' => 'textfield',
    '#title' => t('Related account description'),
    '#size' => 120,
    '#maxlength' => 120,
    '#default_value' => variable_get_value('easy_social_twitter_account_description'),
  );
  $form['easy_social_twitter_count_show'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display the count bubble'),
    '#default_value' => variable_get_value('easy_social_twitter_count_show'),
  );
  return system_settings_form($form);
}