diff --git a/plugins/views_plugin_style_table.inc b/plugins/views_plugin_style_table.inc index 10aad427..80d3a48e 100644 --- a/plugins/views_plugin_style_table.inc +++ b/plugins/views_plugin_style_table.inc @@ -202,8 +202,8 @@ public function options_form(&$form, &$form_state) { $form['class'] = array( '#type' => 'textfield', - '#title' => t('Table class'), - '#description' => t('The CSS class names will be added to the table. You may define multiple classes separated by spaces.'), + '#title' => t('CSS classes'), + '#description' => t('Add CSS classes to the table; multiple classes may be separated by spaces.'), '#default_value' => $this->options['class'], '#maxlength' => 255, ); diff --git a/theme/theme.inc b/theme/theme.inc index 6a28a904..fdbcf214 100644 --- a/theme/theme.inc +++ b/theme/theme.inc @@ -484,7 +484,7 @@ function template_preprocess_views_view_table(&$vars) { $options = $view->style_plugin->options; $handler = $view->style_plugin; - if (isset($handler->options['class']) and !empty($handler->options['class'])) { + if (!empty($handler->options['class'])) { $classes = explode(' ', $handler->options['class']); $classes = array_map('views_clean_css_identifier', $classes);