Commit a78ac962 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#162785 patch by swentel: fix missing form_state vars in path forms

parent 5a4ad99a
......@@ -64,11 +64,11 @@ function path_admin_overview($keys = NULL) {
/**
* Menu callback; handles pages for creating and editing URL aliases.
*/
function path_admin_edit($pid = 0) {
function path_admin_edit($form_state, $pid = 0) {
if ($pid) {
$alias = path_load($pid);
drupal_set_title(check_plain($alias['dst']));
$output = path_admin_form($alias);
$output = path_admin_form($form_state, $alias);
}
else {
$output = path_admin_form();
......@@ -154,7 +154,7 @@ function path_admin_form_submit($form, &$form_state) {
/**
* Menu callback; confirms deleting an URL alias
**/
function path_admin_delete_confirm($pid) {
function path_admin_delete_confirm($form_state, $pid) {
$path = path_load($pid);
if (user_access('administer url aliases')) {
$form['pid'] = array('#type' => 'value', '#value' => $pid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment