I am user # 1, but I get and access denied message when trying to access admin/settings/bookmark_us .

It seems like the hook_menu() item is missing an "access arguments" element.

It should be:

  $items['admin/settings/bookmark_us'] = array(
    'title' => t('Bookmark Us'),
    'description' => t('Bookmark Us configuration.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array('bookmark_us_settings'),
    'access arguments' => array('access administration pages'), // this is the line I added
    'type' => MENU_NORMAL_ITEM,
  );

It worked for me.

-Corey

Comments

Gurpartap Singh’s picture

Status: Active » Fixed

Thanks! Committed!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.