function pathauto_patterns_build in Patterns 7
Same name and namespace in other branches
- 7.2 patterns_components/components/pathauto.inc \pathauto_patterns_build()
File
- patterns_components/
components/ pathauto.inc, line 139
Code
function pathauto_patterns_build($action, $tag, &$data = NULL, $form_id) {
if ($data['pathauto_reset']) {
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'pathauto_%'");
while ($var = db_fetch_array($result)) {
variable_del($var['name']);
}
cache_clear_all('variables', 'cache');
return;
}
module_load_include('inc', 'pathauto', 'pathauto.admin');
module_load_include('inc', 'path', 'path.admin');
return patterns_results(PATTERNS_SUCCESS, t('Execution successful'), $data);
}