function easychart_easychart_plugin in Easychart 7.2
Same name and namespace in other branches
- 7 plugins/easychart.inc \easychart_easychart_plugin()
Provides easychart plugin to WYSIWYG API through the hook_wysiwyg_include_directory hook.
File
- plugins/
easychart.inc, line 12 - Provides the Easychart Wysiwyg plugin.
Code
function easychart_easychart_plugin() {
// add necessary jQuery ui libs
drupal_add_library('system', 'ui');
drupal_add_library('system', 'ui.dialog');
// Make path to module available to plugin.js
drupal_add_js(array(
'easychart' => array(
'module_path' => drupal_get_path('module', 'easychart'),
),
), 'setting');
return array(
'easychart' => array(
'title' => t('Easychart'),
'vendor url' => 'http://drupal.org/project/easychart',
'icon path' => drupal_get_path('module', 'easychart') . '/plugins/images',
'icon file' => 'icon.png',
'icon title' => t('Add a chart'),
'js path' => drupal_get_path('module', 'easychart') . '/plugins/js',
'js file' => 'plugin.js',
'css path' => drupal_get_path('module', 'easychart') . '/plugins/css',
'css file' => 'plugin.css',
'settings' => array(),
),
);
}