cmsInfo

Login/register
  • All
  • News
  • How To

Navigation

  • Blogs
  • Contact
  • Search
  • Tags
  • Recent posts
Feed Icon
Google
Delicious

Categories

  • All  
  • News  
  • How To  

Popular Tags

Aegir CMS Asbru CMS Community CMS Resources Drupal eZ publish Joomla Krysalis Mambo Managee Midgard Nuxeo OpenCMS PHPNuke Plone Typo3 WebGUI Xaraya Xoops Zope
more tags
0

Boombatower Development: Upgrading theme() calls with Coder Upgrade

http://boombatower.com –

A lot of effort has been poured into the upgrade routines for Coder Upgrade as evidenced by the green check marks on this page. (A side note: so far, duellj is the only person to show up for the upgrade barn raising and much thanks to Jon is due. If you are up for a challenge, help is still welcomed and needed to write and/or test routines.)

An interesting example of an upgrade routine is the theme() function call change. This upgrade involves "array-itizing" the variable parameters. For example, this:

<?php
theme('user_list', $users, $title);
?>

becomes in D7:

<?php
theme('user_list', array('users' => $users, 'title' => $title));
?>

The twist involves finding the keys for the associative array of variables.

Sparing the details, Coder Upgrade will insert the proper keys for any theme defined in D7 core files (includes and modules directories) as well as themes defined by the module being upgraded.

read more

Read »
Created by Drupal 20 weeks 3 days ago
Category: News   Tags:
  • Drupal
  • News
  • Login or register to post comments
  • 0

Similar stories

Lullabot: Drupal Voices 121: Jim Berry on the Grammar Parser and Coder modules 6 weeks 2 days ago
Boombatower Feed: Update on automated module conversion 1 year 17 weeks ago
Boombatower Development: Drupal 7 upgrade sprint (or barn raising) 23 weeks 3 days ago
Be Circle: How to Upgrade from Drupal 5 to Drupal 6 - Steps 3 and 4: Actual Upgrade and Testing 1 year 28 weeks ago
  • Comments
  • Who voted
  • Related links

Tags for Boombatower Development: Upgrading theme() calls with Coder Upgrade

Tags

  • Drupal

Google
 
Web www.cmsinfo.org
RoopleTheme