using functions from other plugins to get data or ..
Trustmaster |
|
---|---|
In Siena you just do this: require_once cot_incfile('module_name', 'module'); or to reuse plugin functions: require_once cot_incfile('plugin_name', 'plug'); You can also detect if that module or plugin is loaded on site: if (cot_plugin_active('plugin_name')) { require_once cot_incfile('plugin_name', 'plug'); // ... } if (cot_module_active('module_name')) { require_once cot_incfile('module_name', 'module'); // ... } May the Source be with you!
|