Hello,
I'm having some serious problems visualizing a tabbed menu for my module.
The code is as follows and the tabbed menu should only appear in the administration settings form page for the module:
function iqtest_menu($may_cache) {
global $user;
$items = array();
//$access = user_access('administer iqtest');
//$title = variable_get("iqtest_nav_link", "iqtest");
if ($may_cache) {
$items[] = array(
'path' => 'mymodule',
'callback' => 'mymodule_page',
'title' => $title,
'access' => user_access('access content'),
);
$items[] = array(
'path' => 'admin/settings/mymodule',
'title' => t('Administer Module'),
'description' => t('Administer settings for the module'),
'callback' => 'drupal_get_form',
'callback arguments' => array('mymodule_admin_settings'),
'access' => user_access('administer site configuration'),
);
$item[] = array(
'path' => 'admin/settings/mymodule/one',
'title' => t('One'),
'callback'=> 'mymodule_admin_settings',
'access' => user_access('administer site configuration'),
'weight'=> 0,
'type' =>MENU_DEFAULT_LOCAL_TASK,
);
$item[] = array(
'path' => 'admin/settings/mymodule/two',
'title' => t('Two'),
'callback'=> 'mymodule_load_two',