Closed (duplicate)
Project:
Feature
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2004 at 14:17 UTC
Updated:
8 Oct 2005 at 11:39 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | feature.module | 4.46 KB | media girl |
Comments
Comment #1
sepeck commentedI 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.
Comment #2
jsloan commentedIt 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.
Comment #3
sepeck commentedI tried it again with the refresh and I got the add feature menu item in administer \ feature.
Comment #4
media girl commentedThis 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.
Comment #5
(not verified) commentedThe fix doesn't work for CVS version. Any ideas?
Comment #6
(not verified) commentedThe fix doesn't work for CVS version. Any ideas?
Comment #7
mdowsett commentedI'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
Comment #8
Jolene-at-advancedwebdesign.com commentedI used the above module code to overwrite what I had and it works fine. Thanks!
Comment #9
Richard Archer commentedSee: http://drupal.org/node/20344