You are here

function sharethis_admin in ShareThis 7

Implements hook_admin.

ShareThis Config Menu.

1 string reference to 'sharethis_admin'
sharethis_menu in ./sharethis.module
Implements hook_menu.

File

./sharethis.module, line 36
A module that adds one of the ShareThis widget to your website.

Code

function sharethis_admin() {

  // First, setup variables we will need.
  // Get the path variables setup.
  $my_path = drupal_get_path('module', 'sharethis');
  $current_options_array = get_options_array();
  global $base_url;

  // Load the css and js for our module's configuration.
  drupal_add_css($my_path . '/ShareThisForm.css');
  drupal_add_js('https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js', 'external');

  // @TODO: Do we really need to load jQuery twice?
  drupal_add_js('http://w.sharethis.com/share5x/js/stcommon.js', 'external');

  //This is ShareThis's common library - has a serviceList of all the objects that are currently supported.
  drupal_add_js($my_path . '/ShareThisForm.js');
  drupal_add_js($my_path . '/stlib_picker.js');
  drupal_add_css($my_path . '/stlib_picker.css');
  return drupal_get_form('sharethis_form');
}