You are here

function addthis_handler_field_toolbox::options_form in AddThis 6.3

File

./addthis_handler_field.inc, line 70
A handler to provide an AddThis button for a particular node.

Class

addthis_handler_field_toolbox
A handler to provide an AddThis toolbox for a particular node.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  // Allow for custom toolbox services.
  $form['services'] = array(
    '#type' => 'textarea',
    '#rows' => 3,
    '#title' => t('Toolbox services'),
    '#description' => t('A comma-separated list of AddThis service codes to use in the Toolbox field. Leave blank to use your configured defaults.'),
    '#default_value' => $this->options['services'],
  );

  // Alter options form defaults.
  unset($form['alter']);
  unset($form['empty']);
  unset($form['empty_zero']);
  unset($form['hide_empty']);
}