Skip to content

Instantly share code, notes, and snippets.

@dergachev
Created February 1, 2012 20:43
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/1719193 to your computer and use it in GitHub Desktop.
Save dergachev/1719193 to your computer and use it in GitHub Desktop.
<?php
function my_module_menu() {
$items = array();
$items['admin/config/content/my-module'] = array(
'title' => 'My Module Settings',
'description' => 'Administer My Module.',
'page callback' => 'my_module_settings_callback',
'access callback' => 'user_access', //this is filled in by default
'access arguments' => array('access administration pages'), //arguments to user_access
);
return $items;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment