@@ -265,7 +265,7 @@ function path_form_alter($form_id, &$form) {
...
@@ -265,7 +265,7 @@ function path_form_alter($form_id, &$form) {
'#collapsed'=>TRUE,
'#collapsed'=>TRUE,
'#description'=>t('Optionally specify an alternative URL by which this node can be accessed. For example, type "about" when writing an about page. Use a relative path and don\'t add a trailing slash or the URL alias won\'t work.'),
'#description'=>t('Optionally specify an alternative URL by which this node can be accessed. For example, type "about" when writing an about page. Use a relative path and don\'t add a trailing slash or the URL alias won\'t work.'),
);
);
if($node->path){
if($path){
$form['path']['pid']=array(
$form['path']['pid']=array(
'#type'=>'value',
'#type'=>'value',
'#value'=>db_result(db_query("SELECT pid FROM {url_alias} WHERE dst = '%s'",$path))
'#value'=>db_result(db_query("SELECT pid FROM {url_alias} WHERE dst = '%s'",$path))
@@ -265,7 +265,7 @@ function path_form_alter($form_id, &$form) {
...
@@ -265,7 +265,7 @@ function path_form_alter($form_id, &$form) {
'#collapsed'=>TRUE,
'#collapsed'=>TRUE,
'#description'=>t('Optionally specify an alternative URL by which this node can be accessed. For example, type "about" when writing an about page. Use a relative path and don\'t add a trailing slash or the URL alias won\'t work.'),
'#description'=>t('Optionally specify an alternative URL by which this node can be accessed. For example, type "about" when writing an about page. Use a relative path and don\'t add a trailing slash or the URL alias won\'t work.'),
);
);
if($node->path){
if($path){
$form['path']['pid']=array(
$form['path']['pid']=array(
'#type'=>'value',
'#type'=>'value',
'#value'=>db_result(db_query("SELECT pid FROM {url_alias} WHERE dst = '%s'",$path))
'#value'=>db_result(db_query("SELECT pid FROM {url_alias} WHERE dst = '%s'",$path))