Skip to content
Snippets Groups Projects
Commit 4f4ad2bc authored by haiiro.shimeji's avatar haiiro.shimeji Committed by Brandon Bergren
Browse files

Issue #1425448 Error using with views - Grouping field keeps getting recreated

parent d91e1f83
No related branches found
Tags 6.x-2.0-beta1
No related merge requests found
......@@ -466,6 +466,7 @@ class gmap_plugin_style_gmap extends views_plugin_style {
* Validate the options form.
*/
function options_validate(&$form, &$form_state) {
parent::options_validate($form, $form_state);
// Check if highlight color is a valid hex color
if (!preg_match('/^#[a-f0-9]{6}$/i', $form_state['values']['style_options']['highlight_nodearg_color'])) {
form_error($form['highlight_nodearg_color'], t('Highlight colour must be a valid hex code in the form #FF0000.'));
......
......@@ -322,6 +322,7 @@ class gmap_plugin_style_gmapextended extends views_plugin_style {
* Validate the options form.
*/
function options_validate(&$form, &$form_state) {
parent::options_validate($form, $form_state);
// Check if highlight color is a valid hex color
if (!preg_match('/^#[a-f0-9]{6}$/i', $form_state['values']['style_options']['highlight_nodearg_color'])) {
form_error($form['highlight_nodearg_color'], t('Highlight colour must be a valid hex code in the form #FF0000.'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment