summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Wehner2011-09-25 07:58:55 (GMT)
committer Daniel Wehner2011-09-25 07:59:07 (GMT)
commit22ddf7c2c3430825eb4e80b55747d7faf8f61dce (patch)
treec15a05fd3e0de978ed7fc44872c23c77c7b78c60
parentf5dea0502200a28b9732daa4ee7c8f5c0838a290 (diff)
#1278640 by dereine: Grid columns should be required
-rw-r--r--plugins/views_plugin_style_grid.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/views_plugin_style_grid.inc b/plugins/views_plugin_style_grid.inc
index 91722f2..08fbc9c 100644
--- a/plugins/views_plugin_style_grid.inc
+++ b/plugins/views_plugin_style_grid.inc
@@ -33,6 +33,8 @@ class views_plugin_style_grid extends views_plugin_style {
'#type' => 'textfield',
'#title' => t('Number of columns'),
'#default_value' => $this->options['columns'],
+ '#required' => TRUE,
+ '#element_validate' => array('views_element_validate_integer'),
);
$form['alignment'] = array(
'#type' => 'radios',