I am trying to add a section to the Home>Administration>Configuration page which then opens a new form with 2 tabs (create_team and create_game).
My code (which does not work):
function guild_management_core_menu()
{
$items['admin/config/guild_management_core/create_game'] = array
(
'title' => 'Create Game',
'description' => 'Create Game',
'page callback' => 'drupal_get_form',
'page arguments' => array('guild_management_core_create_game'),
'access arguments' => array('access administration pages'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['admin/config/guild_management_core/create_team'] = array
(
'title' => 'Create Team',
'description' => 'Create Team',
'page callback' => 'drupal_get_form',
'page arguments' => array('guild_management_core_create_team'),
'access arguments' => array('access administration pages'),
'type' => MENU_LOCAL_TASK,
'weight' => 0,
);
return $items;
}
I tried the links below but they don't work either: drupal--hook_menu Drupal hook_menu from module for admin menu
I also disabled the module and enabled it again and then I cleared the cache but still no results.
EDIT: This works:
$items['admin/config/annotate'] = array(
'title' => 'Guild Management',
'description' => 'Guild Management',
'position' => 'right',
'weight' => -5,
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array('administer site configuration'),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
When I replace "admin/config/annotate" with "admin/config/guild_management_core" it goes wrong again...