altore
altore

Reputation: 245

Drupal: Issue with hook_menu

I trying to add a link like this :

    $items['channel/%'] = array(
    'title' => t('channel'),
    'page callback' => 'ptt_get_channel_list',
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK,
);

but when I add this link, I have no access to adming/config menu.

I have several link like this :

    $items['ptt/items'] = array(
    'title' => t('channel'),
    'page callback' => 'ptt_get_items',
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK,
);

$items['ptt/items/detail'] = array(
    'title' => t('channel'),
    'page callback' => 'ptt_get_items_details',
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK,
);

Now when I add one more link, I can't access adming/config. Why?

Upvotes: 0

Views: 205

Answers (0)

Related Questions