Tag: 5-0

Here you can see a listing of all the posts tagged with 5-0 on this website.

  • Theming primary links in Drupal 5.0

    Posted on Nov. 24, 2006 at 15:32 +0100 Tagged with , , ,

    I'm currently in the process of porting over the theme here to Drupal 5.0 and noticed a slight difference between 4.7 and 5.0. While I was able to use something like this in my template.php before:

       function mytheme_menu_item_link($item, $link_item) {
           static $menu;
           $attribs = isset($item['description']) ? 
               array('title' => $item['description']) : array();
           if ('<front>' == $link_item['path'] &&
               (
                   arg(0)=='node' && (
                       (is_numeric(arg(1)) && arg(1) != 213)
                       || arg(1)==''
                   )
               )
           ){
               $attribs['class'] = 'active';
           }
           return l($item['title'], $link_item['path'], $attribs);
       }
       

    [more ...]

    0 comments

  • On my way to port some more ...

    Posted on Nov. 4, 2006 at 02:16 +0100 Tagged with , ,

    As I've written on Thursday, I've started porting the custom modules I've written for zerokspot.com in order to move ASAP over to Drupal 5.0 as soon as there is an RC out there. My main motivation behind this is the integration of jQuery into Drupal core, which should make some of the hacks I had to perform quite obsolete :)

    To make this transition possible I also had to one "foreign" modules which are still <= 4.7 only in the Drupal repository. I guess when I'm done with all that, quite a few will have also entered this list. Probably the biggest fish in the pond will be the Akismet module which I'll probably not dare to touch :-) I just hope that Markus finds some time updating it before RC1 hits or at least before Drupal 5.0 final is released :)

    [more ...]

    0 comments

  • Migrating custom node type modules

    Posted on Nov. 2, 2006 at 21:06 +0100 Tagged with , , , ,

    Today I finally started porting the modules I had written for zerokspot.com from Drupal 4.7 to 5.0. So far everything has worked out just fine apart from one little thing:

    I added the modulename.info file to my book review module and there it was in the admin panel. Everything's great. Then I wanted to create a new node with this type and noticed (1) that it doesn't appear in the main listing but only in the navigation sidebar and (2) that when I try to submit the new node, I get an error similar to this one:

    array_merge_recursive() [<a href='function.array-merge-recursive'>function.array-merge-recursive</a>]: Argument #2 is not an array in /opt/wwwdev/htdocs/drupal-5.0/modules/node/node.module on line 1916.

    [more ...]

    1 comment