Hi,
This module is missing something important and easy to configure: permissions.
I created one simple permission to be used for roles who are able to configure share this.
Add this piece of code at sharethis.module

function sharethis_permission() {
  return array(
    'configure share this' => array(
      'title' => t('Administer ShareThis'), 
      'description' => t('Perform administration tasks for this module.'),
    ),
  );
}

Edit hook menu:

function sharethis_menu() {
  $items['admin/config/services/sharethis'] = array(
    'title' => 'ShareThis',
    'description' => 'Choose the widget, button family, and services for using ShareThis to share content online.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('sharethis_admin'),
    'access arguments' => array('configure share this')
  );
  return $items;
}

bye
carlos

Comments

robloach’s picture

Status: Active » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.