You are here

function addthis_templates_form in AddThis 6.3

Form builder function for the Templates administration form.

1 string reference to 'addthis_templates_form'
addthis_menu in ./addthis.module
Implementation of hook_menu().

File

./addthis.admin.inc, line 290
Configuration settings for AddThis.

Code

function addthis_templates_form(&$form_state) {
  $form = array();
  $form['description'] = array(
    '#type' => 'markup',
    '#value' => t('<p><strong>AddThis templates</strong> allow you to define the default text to be posted when a user shares your content to a third-party service.</p>') . t('For more information, visit !url.</p><p>Only service code "twitter" is currently supported by the AddThis API.</p>', array(
      '!url' => l('http://www.addthis.com/help/client-api#configuration-sharing-templates', 'http://www.addthis.com/help/client-api#configuration-sharing-templates'),
    )),
  );
  $form['addthis_templates_twitter'] = array(
    '#type' => 'textfield',
    '#title' => 'Twitter (twitter)',
    '#default_value' => variable_get('addthis_templates_twitter', '{{title}} {{url}} via @AddThis'),
  );
  return system_settings_form($form);
}