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.
The category_init() function assumes that the module is installed in the modules/ directory.
This causes errors about not finding category.inc if it is installed in the recommended path of sites/sitename/modules.
It should be as follows:
function category_init() {
include drupal_get_path('module', 'category') . '/category.inc';
}
Comments
Comment #1
Jaza CreditAttribution: Jaza commentedCommitted. Thanks.
Comment #2
(not verified) CreditAttribution: commented