ted serbinski – entrepreneur & web architect
  • thoughts
  • about
  • contact



Popular content

  • SimpleFeed 1.0 ships!
  • Working 4 days a week
  • My First Podcast!
  • My latest patch: fixing links and breaking modules
  • Taking Naps with Pzizz
  • Leo talks about the new TWiT.tv site
  • Webhealth
  • Fedora: Image Manipulation Servlet
  • DC Drupal Meetup #4
  • Live from London
more

Recent comments

  • thanks very much
    1 week 6 days ago
  • it is really nice written
    2 weeks 5 days ago
  • Hi, I have used the
    4 weeks 3 days ago
  • thankyou so much and for
    9 weeks 19 hours ago
  • It’s typical for the
    10 weeks 4 days ago
more

My latest patch: fixing links and breaking modules

My latest patch, based on work originally started by Bèr, was just committed today. It expands on Bèr’s work by not only giving structure to hook_link items, but also to menu items returned from menu_primary_links() and menu_secondary_links(). It also introduces a new hook_link_alter() in the fashion of hook_form_alter(). Additionally, the syntax is influenced by forms api and I threw in a bunch of tweaks to make it very useful, like automatically adding class names to links, the #1 theme problem I run into over and over again.

If you want more details, read up on the docs I wrote (first 3 items) or check out the article I wrote about the practicalness of this patch.

So what’s next? Well I’d like to see theme(‘links’) return an actual list of links instead of a crummy string, so perhaps that…

posted 18 May 2006
  • drupal

1 comment

#1
xanax wrote 2 years 46 weeks ago

Sorry. Post that you have deleted was mine.

Add your comment

The content of this field is kept private and will not be shown publicly.
  • You can use Textile markup to format text.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <img> <pre>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options


Code examples and downloadable zip files of code are licensed under a Creative Commons License.
All other content, unless where noted, ©2010 Theodore Serbinski. All Rights Reserved.