Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
foreach (_token_core_supported_modules() as $module) {
if (module_exists($module)) {
$implementations[$module] = TRUE;
}
}
Sets TRUE when the module is internally supported by the token module. This parameter is supposed to be the $group parameter (either FALSE, either a string).
When module_load_include() is called by module_implements() it does this:
module_load_include('inc', $module, "$module.$group");
Which can be translated into:
module_load_include('inc', $module, "$module." . TRUE);
Which then is converted to the following filename (example for the field module):
field.1.inc
Which then cause an additional is_file() call by module_load_include() which could be avoided.
The easy fix is just replacing the TRUE by FALSE.
Comments
Comment #1
Dave ReidYep, you're right. This is now fixed with http://drupalcode.org/project/token.git/commit/e130ea5
Comment #2
pounardThanks! Quick and clean.