I tried disabling page module and after this, every page shows a warning:

warning: Invalid argument supplied for foreach() in /var/www/localhost/htdocs/includes/theme.inc on line 231.

Drupal code near this line is:

  if (module_exist('node')) {
    foreach (node_get_types() as $type) {
      $defaults['toggle_node_info_' . $type] = 1;
    }
  }
CommentFileSizeAuthor
#2 node_names_init.patch497 byteschx
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amd’s picture

When 'page' module is enabled the array returned by node_get_types is

Array ( [page] => page ) 
chx’s picture

Title: Error message on site after disabling 'page' module » _node_name returns NULL on no node types
Component: theme system » node system
Assigned: Unassigned » chx
Status: Active » Reviewed & tested by the community
FileSize
497 bytes

_node_name returns NULL instead of array() when there are no node types.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)