We're trying to keep our plugins separate from the .info files that always get loaded. When using an info file based plugin, the extension parameter is ignored in favor of .info.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jsagotsky’s picture

This patch lets a plugin specify its own extension by ignoring the default .inc when determining which extension to use.

merlinofchaos’s picture

Status: Active » Needs review

Setting proper status.

tim.plunkett’s picture

Status: Needs review » Needs work
+++ b/includes/plugins.incundefined
@@ -447,7 +447,7 @@ function ctools_plugin_load_includes($info, $filename = NULL) {
+      $extension = (empty($info['info file'])||($info['extension']!='inc')) ? $info['extension'] : 'info';

This needs spaces around the || and !=

jsagotsky’s picture

Status: Needs work » Needs review
FileSize
763 bytes

Updated for style.

merlinofchaos’s picture

Status: Needs review » Fixed

Okay, makes sense. Committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.