function panels_style_settings_form in Panels 6.2
Form for the style settings modal.
Related topics
1 string reference to 'panels_style_settings_form'
- panels_ajax_style_settings in includes/
display-layout-settings.inc - AJAX incoming to deal with the style settings modal
File
- includes/
display-layout-settings.inc, line 339 - Form and ajax handling for edit layout settings
Code
function panels_style_settings_form(&$form_state) {
$did = $form_state['did'];
$style =& $form_state['style'];
$style_settings =& $form_state['style_settings'];
$form['description'] = array(
'#prefix' => '<div class="description">',
'#suffix' => '</div>',
'#value' => check_plain($style['description']),
);
if (isset($style['settings form']) && function_exists($style['settings form'])) {
$form['style_settings'] = $style['settings form']($style_settings);
$form['style_settings']['#tree'] = TRUE;
$form['next'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
}
else {
$form['markup'] = array(
'#value' => t('This style does not have any settings.'),
);
}
return $form;
}