public function simple_timeline_style_plugin::validate in A Simple Timeline 7
Validate whether this plugin is configured correctly.
Return value
array The list of errors to be displayed.
Overrides views_plugin_style::validate
File
- ./
simple_timeline_style_plugin.inc, line 53 - Contains the simple timeline style plugin. Created by JetBrains PhpStorm. User: alan
Class
- simple_timeline_style_plugin
- Style plugin to render each item on a simple timeline.
Code
public function validate() {
$errors = array();
$row_plugin = get_class($this->row_plugin);
if (!in_array($row_plugin, array(
'views_plugin_row_node_view',
'panels_views_plugin_row_fields',
'simple_timeline_row_plugin',
))) {
$errors[] = t('You have not selected an appropriate row plugin. your timeline will break');
}
return $errors;
}