Index: potx.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/potx/Attic/potx.inc,v retrieving revision 1.1.2.17.2.7.2.14 diff -u -p -r1.1.2.17.2.7.2.14 potx.inc --- potx.inc 26 Sep 2008 10:44:32 -0000 1.1.2.17.2.7.2.14 +++ potx.inc 13 Oct 2008 21:28:53 -0000 @@ -189,7 +189,9 @@ function _potx_process_file($file_path, _potx_find_format_plural_calls($file_name, $save_callback, $api_version); if ($name_parts['extension'] == 'module') { - _potx_find_perm_hook($file_name, $name_parts['filename'], $save_callback); + if ($api_version < POTX_API_7) { + _potx_find_perm_hook($file_name, $name_parts['filename'], $save_callback); + } if ($api_version > POTX_API_5) { _potx_find_menu_hook($file_name, $name_parts['filename'], $save_callback); }