You are here

function ctools_stylizer_edit_style_cancel in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/stylizer.inc \ctools_stylizer_edit_style_cancel()

Callback generated when the 'cancel' button is clicked.

We might have some temporary data lying around. We must remove it.

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

File

includes/stylizer.inc, line 875
Create customized CSS and images from palettes created by user input.

Code

function ctools_stylizer_edit_style_cancel(&$form_state) {
  if (!empty($form_state['name'])) {
    ctools_stylizer_clear_settings_cache($form_state['name']);
  }
}