You are here

function patterns_disable_pattern in Patterns 5

2 string references to 'patterns_disable_pattern'
patterns_menu in ./patterns.module
Implementation of hook_menu().
patterns_patterns in components/patterns.inc

File

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

Code

function patterns_disable_pattern($pid) {
  $form['pid'] = array(
    '#type' => 'value',
    '#value' => $pid,
  );
  $pattern = patterns_get_pattern($pid);
  return confirm_form($form, t('Proceed with disabling pattern %pattern?', array(
    '%pattern' => $pattern->title,
  )), 'admin/build/patterns', '');
}