summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorg089h515r8062012-08-11 11:51:11 (GMT)
committerg089h515r8062012-08-11 11:51:11 (GMT)
commitbcbe9ebd5455bc6533d50247ca8a9b4657818055 (patch)
tree980a17d8b074ee165ccecaf46e91fbdc947f1eca
parent0f8b39c7feacb9618fdad022d676b2bda5e4bb8f (diff)
change plugins directory
-rw-r--r--uc_ctools_example/uc_ctools_example.info1
-rw-r--r--uc_ctools_example/uc_ctools_example.module5
2 files changed, 4 insertions, 2 deletions
diff --git a/uc_ctools_example/uc_ctools_example.info b/uc_ctools_example/uc_ctools_example.info
index 2955a35..cc82b52 100644
--- a/uc_ctools_example/uc_ctools_example.info
+++ b/uc_ctools_example/uc_ctools_example.info
@@ -1,4 +1,5 @@
name = Ubercart Ctools Example
description = "Example of leveraging Ctools plugin in Ubercart."
+package = Ubercart - extra
core = 7.x
dependencies[] = uc_ctools
diff --git a/uc_ctools_example/uc_ctools_example.module b/uc_ctools_example/uc_ctools_example.module
index 81e2318..edae845 100644
--- a/uc_ctools_example/uc_ctools_example.module
+++ b/uc_ctools_example/uc_ctools_example.module
@@ -8,8 +8,9 @@
/**
* Implementation of hook_ctools_plugin_directory().
*/
-function uc_ctools_ctools_plugin_directory($module, $plugin) {
+function uc_ctools_example_ctools_plugin_directory($module, $plugin) {
+ //drupal_set_message('123456');
if ($module == 'uc_ctools') {
- return 'plugins/' . $plugin;
+ return 'plugins/ubercart/' . $plugin;
}
}