function easychart_chart_options in Easychart 7.3
Same name and namespace in other branches
- 7.2 easychart.module \easychart_chart_options()
Page callback for passing the chart options to the easychart wysiwyg widget.
Parameters
$chartNode:
1 string reference to 'easychart_chart_options'
- easychart_wysiwyg_menu in modules/
easychart_wysiwyg/ easychart_wysiwyg.module - Implements hook_menu().
File
- modules/
easychart_wysiwyg/ easychart_wysiwyg.module, line 186 - Easychart WYSIWYG integration.
Code
function easychart_chart_options($chartNode) {
if (!empty($chartNode->easychart[LANGUAGE_NONE][0]['config'])) {
drupal_json_output(array(
'options' => $chartNode->easychart[LANGUAGE_NONE][0]['config'],
));
}
else {
drupal_not_found();
}
}