Closed (fixed)
Project:
ShareThis
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2012 at 17:28 UTC
Updated:
19 Jan 2012 at 18:10 UTC
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
Comment #1
robloachThanks!