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.
At the moment in node_assign_owner_action() node type is retrieved by calling node_get_types('type', $node). This however results in an error since using 'type' returns an object instead of a string.
So instead of
watchdog('action', 'Changed owner of @type %title to uid %name.', array('@type' => node_get_types('type', $node), '%title' => $node->title, '%name' => $owner_name));
it should be
watchdog('action', 'Changed owner of @type %title to uid %name.', array('@type' => node_get_types('name', $node), '%title' => $node->title, '%name' => $owner_name));
Comments
Comment #1
roderik#403034: node_assign_owner_action() logs an object type instead of the type name