Skip to content

Instantly share code, notes, and snippets.

@dergachev
Created February 1, 2012 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dergachev/1719489 to your computer and use it in GitHub Desktop.
Save dergachev/1719489 to your computer and use it in GitHub Desktop.
<?php
/*
* Implements hook_permission()
*
* Adds a permission for managing settings
*/
function my_module_permission() {
$perm = array(
'manage my module settings' => array(
'title' => t('Manage My Module Settings'),
),
);
return $perm;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment