You are here

public function sweaver_plugin_styles::sweaver_style_disable in Sweaver 7

Same name and namespace in other branches
  1. 6 plugins/sweaver_plugin_styles/sweaver_plugin_styles.inc \sweaver_plugin_styles::sweaver_style_disable()

Menu callback, disable style.

File

plugins/sweaver_plugin_styles/sweaver_plugin_styles.inc, line 673
Styles plugin.

Class

sweaver_plugin_styles

Code

public function sweaver_style_disable() {
  $style_id = arg(6);
  db_update('sweaver_style')
    ->fields(array(
    'active' => 0,
  ))
    ->condition('style_id', $style_id, '=')
    ->execute();
  drupal_set_message(t('Style disabled'));
  drupal_goto('admin/config/user-interface/sweaver/styles');
}