function sheetnode_views_plugins in Sheetnode 7.2
Same name and namespace in other branches
- 6 sheetnode.views.inc \sheetnode_views_plugins()
- 7 sheetnode.views.inc \sheetnode_views_plugins()
Implements hook_views_plugins().
File
- ./
sheetnode.views.inc, line 11 - Provide views data for sheetnode.
Code
function sheetnode_views_plugins() {
$library_path = libraries_get_path('socialcalc');
$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.min.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',
),
),
);
}