Installed feature.module on Drupal-4.5.0rc

The menu item to ADD does not appear on the page.

It is coded:

$items[] = array('path' => 'admin/feature/add', 'title' => t('add feature'),
    'callback' => 'feature_admin', 'access' => $access,
    'type' => MENU_LOCAL_TASK);

... changing it:

$items[] = array('path' => 'admin/feature/add', 'title' => t('add feature'),
    'callback' => 'feature_admin', 'access' => $access);

will add the menu item to the navigation tree - I'm not sure if that was the intention of the author.

CommentFileSizeAuthor
#4 feature.module4.46 KBmedia girl
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sepeck’s picture

I tried the above fix and it didn't work. I may not have edited it in the same spot though. Drupal 4.5RC -Blue Marine theme.

jsloan’s picture

It is in the feature_menu() hook section - line 15-25.

Also; be aware that the menu will have to be refreshed. Make sure that the menu module is checked on, then go to admister>menus on the navigation menu, that has the effect of "refreshing" the menu settings - I don't know why.

sepeck’s picture

I tried it again with the refresh and I got the add feature menu item in administer \ feature.

media girl’s picture

FileSize
4.46 KB

This fixed worked for me, too. This correction should be made in the feature.module download tarball. The attached file includes the corrected code as noted, with no other changes.

Anonymous’s picture

The fix doesn't work for CVS version. Any ideas?

Anonymous’s picture

The fix doesn't work for CVS version. Any ideas?

mdowsett’s picture

I'm using 4.5.2 and I couldn't get this to work. I get this error:

Parse error: parse error, unexpected T_VARIABLE in /home/webusers/mdowsett/dowsett.ca/events/modules/feature.module on line 7

When I clicked on your feature.module download link, it took me to a new browser window with the code. I copied the code to a new text document, named it feature.module and uploaded it to my Drupal site. I am sure that wasn't the right thing to do since I got this error...but how else can I get that updated module?

Mark

Jolene-at-advancedwebdesign.com’s picture

I used the above module code to overwrite what I had and it works fine. Thanks!

Richard Archer’s picture

Priority: Critical » Normal
Status: Active » Closed (duplicate)