Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, sorry for my English.
I'm using "page title" and "node breadcrumb" together. I have error: page title use default format.
I found error in this code:
// Node (either node or comment reply)
if ((arg(0) == 'node' && is_numeric(arg(1))) || (arg(0) == 'comment' && arg(1) == 'reply' && is_numeric(arg(2)) && module_exists('comment')) ) {
$types['node'] = menu_get_object();
$page_title_pattern = variable_get('page_title_type_'. $types['node']->type, '');
}
menu_get_object() - return NULL