function slickgrid_slickgrid_plugins in Slickgrid 6
Implementation of hook_slickgrid_plugins().
File
- ./
slickgrid.module, line 193
Code
function slickgrid_slickgrid_plugins() {
$path = drupal_get_path('module', 'slickgrid');
$plugins = array(
'TextCellEditor' => array(
'description' => t('Text cell'),
'js' => $path . '/js/slickgrid.editors.js',
'css' => $path . '/css/slickgrid.editors.css',
'field_type' => array(
'node_title',
'date_text',
),
// Need to only allow for certain field types.
'plugin_type' => 'editor',
),
'LongTextCellEditor' => array(
'description' => t('Simple textarea'),
'js' => $path . '/js/slickgrid.editors.js',
'css' => $path . '/css/slickgrid.editors.css',
'field_type' => array(
'text_textarea',
'node_revisions_body',
),
'plugin_type' => 'editor',
),
'nodeFormEditor' => array(
'description' => t('Popup node form'),
'js' => $path . '/js/slickgrid.editors.js',
'css' => $path . '/css/slickgrid.editors.css',
'plugin_type' => 'editor',
),
// Validators
'requiredFieldValidator' => array(
'description' => t('Required field'),
'js' => $path . '/js/slickgrid.validators.js',
'plugin_type' => 'validator',
),
// 'field_type' => array() // Works for all fields types
// Filters
'textFilter' => array(
'description' => t('Text filter'),
'js' => $path . '/js/slickgrid.filters.js',
'plugin_type' => 'filter',
),
);
return $plugins;
}