Skip to content

Commit

Permalink
INTERIM-163 Get setting from settings not form
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Booher committed Apr 30, 2018
1 parent 6743092 commit 19b9b8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion panels/styles/add_class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ $plugin = array(
* Settings form callback.
*/
function add_class_style_settings_form($settings) {

$form = array();

$form['class'] = array(
'#type' => 'textfield',
'#title' => t('CSS Classes'),
'#description' => t('Enter CSS classes for this style. Separate multiple classes by spaces.'),
'#default_value' => (isset($form['class'])) ? $form['class'] : '',
'#default_value' => (isset($settings['class'])) ? $settings['class'] : '',
);

return $form;
Expand Down

0 comments on commit 19b9b8d

Please sign in to comment.