Commit b92dba25 authored by targoo's avatar targoo

coding standard (indentation...)

parent 15ba8fc5
......@@ -154,10 +154,10 @@ function color_field_field_widget_info() {
// color_field_eyecon_widget need more work before release.
if ($jquery_spectrum_color_picker_enable) {
$widgets['color_field_spectrum_widget'] = array(
'label' => t('Spectrum Color-Picker'),
'field types' => array('color_field_rgb'),
);
$widgets['color_field_spectrum_widget'] = array(
'label' => t('Spectrum Color-Picker'),
'field types' => array('color_field_rgb'),
);
}
$widgets['color_field_plain_text'] = array(
......@@ -309,7 +309,7 @@ function color_field_field_settings_form($field, $instance, $has_data) {
'#default_value' => isset($settings['show_buttons']) ? $settings['show_buttons'] : FALSE,
'#description' => t('Add Cancel/Confirm Button.'),
);
break;
break;
}
return $form;
}
......@@ -399,7 +399,7 @@ function color_field_field_formatter_settings_form($field, $instance, $view_mode
'#default_value' => $settings['height'],
'#required' => TRUE,
);
break;
break;
}
return $element;
......@@ -589,10 +589,10 @@ function color_field_field_widget_form(&$form, &$form_state, $field, $instance,
(isset($element['#field_parents']) && !empty($element['#field_parents'])) ? $bundle_id = '-' . implode('-', $element['#field_parents']) : $bundle_id = '';
$id = str_replace("_", "-", 'edit' . $bundle_id . '-' . $field_id . '-rgb');
$settings['id'] = $id;
$settings['show_input'] = (isset($field['settings']['show_input']) && $field['settings']['show_input'] == 1) ? TRUE: FALSE;
$settings['show_palette'] = (isset($field['settings']['show_palette']) && $field['settings']['show_palette'] == 1) ? TRUE: FALSE;
$settings['show_palette_only'] = (isset($field['settings']['show_palette_only']) && $field['settings']['show_palette_only'] == 1) ? TRUE: FALSE;
$settings['show_buttons'] = (isset($field['settings']['show_buttons']) && $field['settings']['show_buttons'] == 1) ? TRUE: FALSE;
$settings['show_input'] = (isset($field['settings']['show_input']) && $field['settings']['show_input'] == 1) ? TRUE : FALSE;
$settings['show_palette'] = (isset($field['settings']['show_palette']) && $field['settings']['show_palette'] == 1) ? TRUE : FALSE;
$settings['show_palette_only'] = (isset($field['settings']['show_palette_only']) && $field['settings']['show_palette_only'] == 1) ? TRUE : FALSE;
$settings['show_buttons'] = (isset($field['settings']['show_buttons']) && $field['settings']['show_buttons'] == 1) ? TRUE : FALSE;
$default_colors = (isset($field['settings']['palette']) && $field['settings']['palette'] != '') ? $field['settings']['palette'] : '';
preg_match_all("/#[0-9a-fA-F]{6}/", $default_colors, $default_colors, PREG_SET_ORDER);
......@@ -618,7 +618,7 @@ function color_field_field_widget_form(&$form, &$form_state, $field, $instance,
),
),
);
break;
break;
case 'color_field_default_widget':
$field_id = str_replace("_", "-", $field['field_name']) . '-' . $langcode . '-' . $delta;
......@@ -678,3 +678,4 @@ function color_field_widget_error($element, $error, $form, &$form_state) {
break;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment