function pathauto_patterns_get_arguments in Patterns 7
File
- patterns_components/
components/ pathauto.inc, line 160
Code
function pathauto_patterns_get_arguments($action, $tag, $form_id, &$loop = FALSE) {
$return = array();
if ($form_id == "path_admin_form" && $action == PATTERNS_MODIFY) {
$loop = TRUE;
$paths = db_query("SELECT * FROM {url_alias}", array(), array(
'fetch' => PDO::FETCH_ASSOC,
))
->fetchAll();
foreach ($paths as $path) {
array_push($return, array(
$path,
));
}
return $return;
}
elseif ($form_id == "path_admin_form") {
$result = array(
array(
'source' => '',
'alias' => '',
'language' => 'und',
'pid' => NULL,
),
);
return $result;
}
}