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.
Function ctools_plugin_api_include()
makes incorrect use of the file
value returned by hook_ctools_plugin_api()
. Instead of assigned it to $file
, it assigns the result of isset()
to that variable.
This causes the parameter not to work, as ctools checks for existence of DRUPAL_ROOT . "/$plugin_info[path]/1"
, which never exists.
In addition, the module also recognizes undocumented key $api file
, with the same error. It should probably be documented or removed.
Comment | File | Size | Author |
---|---|---|---|
#1 | ctools_plugin_api_include-1242632-1.patch | 692 bytes | fgm |
Comments
Comment #1
fgmSuggested patch fixes both
isset()
problems.A decision should be taken regarding
$api file
before patching.Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedOdd bug! Committed, thank you!