diff --git a/jquery_update.module b/jquery_update.module index 9d143be..de22242 100644 --- a/jquery_update.module +++ b/jquery_update.module @@ -155,7 +155,7 @@ function jquery_update_menu() { 'description' => 'Configure settings related to the jQuery upgrade, the library path and compression.', 'page callback' => 'drupal_get_form', 'page arguments' => array('jquery_update_settings_form'), - 'access arguments' => array('administer site configuration'), + 'access arguments' => array('administer jquery update'), ); return $items; @@ -542,3 +542,15 @@ function jquery_update_jqueryui_local(&$javascript, $path, $min, $names) { $javascript[$name]['version'] = '1.10.2'; } } + +/** + * Implements hook_permission(). + */ +function jquery_update_permission() { + return array( + 'administer jquery update' => array( + 'title' => t('Administer jQuery Update'), + 'description' => t('Perform administration tasks for jQuery Update.'), + ), + ); +}