Monday 9 September 2013

Upgrading a collection of drupal 6 modules to drupal 7

Starting the long upgrade of a collection of drupal 6 modules to drupal 7.

This seems like the definitive guide. Geez it's a long list.

# get the coder module:
drush @d7 dl coder --dev
drush @d7 dl grammar_parser
# next line maybe redundant (not sure)
drush @d7 dl grammar_parser_lib
drush @d7 en coder_review
drush @d7 en coder_upgrade
cd sites/all
mv modules/grammar_parser_lib libraries


tbc...

find . -name '*.*' -exec sed -i 's/db_escape_string/mysql_real_escape_string/g' "{}" \;


vim macro to upgrade permission function:


/function .*perm(^M;s/perm(/permission(/^Mj/array^Mf(vib;s/'[^']*'/& => array(\r      'title' => t(&),\r      'description' => t(&))/g

 simple test case