function ctools_stylizer_edit_style_next

Callback generated when the 'next' button is clicked.

1 string reference to 'ctools_stylizer_edit_style_next'
ctools_stylizer_edit_style in includes/stylizer.inc
Add a new style of the specified type.

File

includes/stylizer.inc, line 858

Code

function ctools_stylizer_edit_style_next(&$form_state) {
    $form_state['form_info']['path'] = str_replace('%name', $form_state['name'], $form_state['form_info']['path']);
    $form_state['redirect'] = ctools_wizard_get_path($form_state['form_info'], $form_state['clicked_button']['#next']);
    // Update the cache with changes.
    $cache = array(
        'settings' => $form_state['settings'],
    );
    if (!empty($form_state['owner info']['owner settings'])) {
        $cache['owner settings'] = $form_state['owner info']['owner settings'];
    }
    ctools_stylizer_set_settings_cache($form_state['name'], $cache);
}