Felmeddelande
Warning: Missing argument 2 for theme_add_child_book_content_types(), called in /Volumes/RAID 8/ Pågående Arbeten/_DP_Databaser_lokala/lazy_dp736_raceservice/includes/theme.inc on line 1161 and defined i theme_add_child_book_content_types() (rad 608 av /Volumes/RAID 8/ Pågående Arbeten/_DP_Databaser_lokala/lazy_dp736_raceservice/sites/all/modules/book_made_simple/book_made_simple.module).

My themes is: adaptivetheme -> AT_Panels_Everywhere -> AT_PE_Subtheme. (The subtheme is a copy of AT_Panels_Everywhere) both sub-themes are pached = https://www.drupal.org/node/1900236.

I can see that the problem shows up for OG - but the patch solve that problem don't work.

Please advice what to do?
- is this a "Theme" problem or a "book made it simple" problem?

Comments

MarcElbichon’s picture

I don't understand why AT calls this function.
Can you replace in book_made_simple.module

function theme_add_child_book_content_types($variables) {

by

function theme_add_child_book_content_types($variables, $dummy=null) {

and retry ?

Göran’s picture

Tanks for reply,
I cant find this line in module book_made_simple?

<?php
function theme_add_child_book_content_types($variables) {
?>

But on line 605-611 in book_made_simple module I find this:

 * @todo Please document this function.
 * @see http://drupal.org/node/1354
 */
function theme_add_child_book_content_types($allowedTypes, $node) {
  // TODO Number of parameters in this theme funcion does not match number of parameters found in hook_theme.
  return "";
}

Please advice if it is that line you mean I should replace?
Look a bit strange because is differences against your suggestion - who make me a bit unsure?