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.)
Comment | File | Size | Author |
---|---|---|---|
#1 | cck_build_mode-458952.patch | 841 bytes | yched |
Comments
Comment #1
yched CreditAttribution: yched commentedhm, that's because we gather results through module_invoke_all(), which internally uses an array_merge_recursive().
Committed the attached patch, should fix it.