Skip to content

Instantly share code, notes, and snippets.

@ceejayoz
Created August 27, 2009 18:07
Show Gist options
  • Save ceejayoz/176439 to your computer and use it in GitHub Desktop.
Save ceejayoz/176439 to your computer and use it in GitHub Desktop.
<?php
function classifieds_menu() {
$items = array();
$items['admin/classifieds'] = array(
'title' => 'Classifieds system',
'description' => 'Administer the classifieds system.',
'access arguments' => array('access administration pages'),
'position' => 'left',
'page callback' => 'classifieds_admin_page',
'weight' => -9999,
);
return $items;
}
function classifieds_admin_page() {
require_once(drupal_get_path('module', 'system') . '/system.admin.inc');
$output .= system_admin_menu_block_page();
return $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment