Unsupported operand types in /var/www/html/mydrupal/includes/theme.inc on line 637 drupal 7

function mycustomtheme_theme($existing, $type, $theme, $path){}

Turns out you need to return an array. It can be empty, but it can’t be a string or null.

Solution:

function mycustomtheme_theme($existing, $type, $theme, $path){
  return array();
}

 

Advertisements