easychart.inc in Easychart 7.2
Same filename and directory in other branches
Provides the Easychart Wysiwyg plugin.
File
plugins/easychart.incView source
<?php
/**
* @file
* Provides the Easychart Wysiwyg plugin.
*/
/**
* Provides easychart plugin to WYSIWYG API through the
* hook_wysiwyg_include_directory hook.
*/
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(),
),
);
}
Functions
Name | Description |
---|---|
easychart_easychart_plugin | Provides easychart plugin to WYSIWYG API through the hook_wysiwyg_include_directory hook. |