function sheetnode_views_plugins in Sheetnode 7
Same name and namespace in other branches
- 6 sheetnode.views.inc \sheetnode_views_plugins()
- 7.2 sheetnode.views.inc \sheetnode_views_plugins()
Implements hook_views_plugins().
File
- ./
sheetnode.views.inc, line 10 - Provide views data for sheetnode.
Code
function sheetnode_views_plugins() {
$library_path = drupal_get_path('module', 'sheetnode');
$module_path = drupal_get_path('module', 'sheetnode');
return array(
'style' => array(
'sheet' => array(
'title' => t('Spreadsheet'),
'help' => t('Displays results in a browser spreadsheet.'),
'handler' => 'sheetnode_plugin_style',
'uses row plugin' => FALSE,
'uses fields' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
'path' => $module_path . '/views',
'js' => array(
$library_path . '/socialcalc/formatnumber2.js',
$library_path . '/socialcalc/formula1.js',
$library_path . '/socialcalc/socialcalcconstants.js',
$library_path . '/socialcalc/socialcalc-3.js',
$library_path . '/socialcalc/socialcalctableeditor.js',
$library_path . '/socialcalc/socialcalcpopup.js',
$library_path . '/socialcalc/socialcalcspreadsheetcontrol.js',
$library_path . '/socialcalc/socialcalcviewer.js',
$module_path . '/js/sheetnode.js',
),
),
'sheet_raw' => array(
'title' => t('SocialCalc format'),
'help' => t('Render the view as a raw SocialCalc spreadsheet.'),
'handler' => 'sheetnode_raw_plugin_style',
'parent' => 'sheet',
'uses row plugin' => FALSE,
'uses fields' => TRUE,
'uses options' => TRUE,
'type' => 'feed',
'path' => $module_path . '/views',
),
),
);
}