I know there are patches to core, but they were never backported to Drupal 6 from what I can tell.

How can this be overridden in a theme?

1 Answer 1


You should be able to fix this by using hook_form_alter() and override the default maxlength for the input field, and then change the field in the db to varchar(255) if it isn't already.

Another option would be to use a token value for the path and change the value on output using theme_menu_item().

Perhaps the best option after all would be the Custom Tokens module. I haven't tried it so I can't say if it works.

The downside with tokens is that you would have to make one token per URL, or possibly use a part of the URL if it's generally the same.

  • Keep in mind that, if you alter the schema of a table defined from another module, you need to also implement hook_schema_alter().
    – apaderno
    Commented Nov 23, 2012 at 4:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.