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.
The problem popped up when i was trying to add a new bracket from the "/admin/node/bracket/add" path. Admin_menu uses these path's in the "Create content" menu.
The problem lies in
bracket.module - line 562 onwards
if (arg(1) == 'add') {
$options = array('' => t('Select a bracket design')) + bracket_design_list();
$form['bracket']['design'] = array(
Arg(1) returns bracket here and not add, so i can't choose a design and create a new bracket.
Comments
Comment #1
jimbullington CreditAttribution: jimbullington commentedThank you for the report. Yes, we need a better way to detect the add - how about changing line 562 to:
Comment #2
jimbullington CreditAttribution: jimbullington commentedComment #3
XiaN Vizjereij CreditAttribution: XiaN Vizjereij commentedI'm sorry, but my knowledge of the module internals is not good enough. I just started using the module and can not commentate on that yet :(
Comment #4
jimbullington CreditAttribution: jimbullington commentedI'm pretty sure it will work - I've committed the change to the 6.x-2.x-dev branch so you can try it again after the next build later today.
Comment #5
jimbullington CreditAttribution: jimbullington commented