function patterns_execute_pattern in Patterns 6.2
Same name and namespace in other branches
- 5 patterns.module \patterns_execute_pattern()
- 6 patterns.module \patterns_execute_pattern()
2 calls to patterns_execute_pattern()
- patterns_enable_pattern_submit in ./
patterns.module - patterns_execute_config in ./
patterns.module - Execute default configuration for module during the module installation
File
- ./
patterns.module, line 1377 - Enables extremely simple adding/removing features to your site with minimal to no configuration
Code
function patterns_execute_pattern($pattern, $params = array(), $mode = 'batch') {
$args = array(
$pattern,
$params,
);
$function = 'patterns_execute_pattern_' . $mode;
if (!function_exists($function) || !is_object($pattern)) {
return FALSE;
}
return call_user_func_array($function, $args);
}