function sheetnode_views_plugins in Sheetnode 6
Same name and namespace in other branches
- 7.2 sheetnode.views.inc \sheetnode_views_plugins()
- 7 sheetnode.views.inc \sheetnode_views_plugins()
Implementation of hook_views_plugins().
File
- ./
sheetnode.views.inc, line 6
Code
function sheetnode_views_plugins() {
$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',
'theme' => 'views_view_sheet',
'path' => $path . '/views',
'js' => array(
$path . '/socialcalc/socialcalcconstants.js',
$path . '/socialcalc/socialcalc-3.js',
$path . '/socialcalc/socialcalctableeditor.js',
$path . '/socialcalc/formatnumber2.js',
$path . '/socialcalc/formula1.js',
$path . '/socialcalc/socialcalcpopup.js',
$path . '/socialcalc/socialcalcspreadsheetcontrol.js',
$path . '/socialcalc/socialcalcviewer.js',
$path . '/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' => $path . '/views',
),
),
);
}