According to the instructions in #441412: Support Drupal core's NODE_BUILD_PRINT build mode, I proceeded to create a print_content_build_modes() function with the exact same code as is now in the latest 6.x-2.x-dev for book_content_build_modes().

The results are:
- It works fine when either book or the print module are enabled (the new 'Print' display mode is shown).
- It doesn't work when both the book and print module are enabled (the 'Print' display mode is no longer shown and the following warning is displayed in Drupal: warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /srv/www/htdocs/drupal-6.11/includes/database.mysqli.inc on line 323.)

CommentFileSizeAuthor
#1 cck_build_mode-458952.patch841 bytesyched
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Status: Active » Fixed
FileSize
841 bytes

hm, that's because we gather results through module_invoke_all(), which internally uses an array_merge_recursive().
Committed the attached patch, should fix it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.