hello,

installing the module and going to the index results in:

Fatal error: Call to undefined function locale_language_list() in /srv/clients/aupair/Drupal/sites/all/modules/cmf/node.inc on line 27

Running on Drupal 6.13
Ubuntu 9
Mysql 5
Php 5.2

The local module is not enabled.

Release 6.x-1.7 Code

25 function cmf_admin_nodes_form() {
26  $destination = drupal_get_destination();
27  $lang_codes = array('' => t('Neutral')) + locale_language_list('name');

Added check for local module:

25 function cmf_admin_nodes_form() {
26   $destination = drupal_get_destination();
27   if(module_exists('local')) {
28     $lang_codes = array('' => t('Neutral')) + locale_language_list('name');
29   } else {
30     $lang_codes = array('' => t('Neutral'));
31   }

After that runs just fine.

Comments

nancydru’s picture

Status: Active » Closed (duplicate)

It would really help if everyone would check the issue queue before submitting an issue.

#525192: node.inc give error if locale not enabled