Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: sepeck commentedI tried it again with the refresh and I got the add feature menu item in administer \ feature.
Comment #4
media girl CreditAttribution: 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) CreditAttribution: commentedThe fix doesn't work for CVS version. Any ideas?
Comment #6
(not verified) CreditAttribution: commentedThe fix doesn't work for CVS version. Any ideas?
Comment #7
mdowsett CreditAttribution: 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 CreditAttribution: Jolene-at-advancedwebdesign.com commentedI used the above module code to overwrite what I had and it works fine. Thanks!
Comment #9
Richard Archer CreditAttribution: Richard Archer commentedSee: http://drupal.org/node/20344