You are here

function patterns_disable_pattern_submit in Patterns 5

File

./patterns.module, line 811
Enables extremely simple adding/removing features to your site with minimal to no configuration

Code

function patterns_disable_pattern_submit($form_id, $form_values) {
  $pid = $form_values['pid'];
  $pattern = patterns_get_pattern($pid);
  if (patterns_execute_pattern($pattern, true, true)) {
    return 'admin/build/patterns';
  }
}