You are here

function sharethis_install in ShareThis 7

Same name and namespace in other branches
  1. 8.2 sharethis.install \sharethis_install()
  2. 7.2 sharethis.install \sharethis_install()

Implements hook_install().

File

./sharethis.install, line 9
This file holds the install information for the ShareThis Module.

Code

function sharethis_install() {
  $record = (object) NULL;
  $record->st_option = "widget";
  $record->st_value = "st_multi";
  drupal_write_record('st_table', $record);
  $record = (object) NULL;
  $record->st_option = 'buttons';
  $record->st_value = 'stbc_large';
  drupal_write_record('st_table', $record);
  $record = (object) NULL;
  $record->st_option = 'services';
  $record->st_value = '"Tweet:twitter","Facebook:facebook","ShareThis:sharethis"';
  drupal_write_record('st_table', $record);
  $record = (object) NULL;
  $record->st_option = 'nodeType';
  $record->st_value = 'page,article';
  drupal_write_record('st_table', $record);
  $record = (object) NULL;
  $record->st_option = 'viewMode';
  $record->st_value = '0';
  drupal_write_record('st_table', $record);
  $record = (object) NULL;
  $record->st_option = 'publisherID';
  $record->st_value = create_default_publisher_key();
  drupal_write_record('st_table', $record);
}