summaryrefslogtreecommitdiff
path: root/modules/path.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-10-28 14:04:20 +0000
committerDries Buytaert <dries@buytaert.net>2005-10-28 14:04:20 +0000
commitef7d2c8a9fe188ee138101ec839246303972ac0d (patch)
tree2a3a170ecf04f2a0aa82c1ced60efb4625f4f135 /modules/path.module
parentda1de1df9f3efe7a08901ea83b9e011637997140 (diff)
downloadbrdo-ef7d2c8a9fe188ee138101ec839246303972ac0d.tar.gz
brdo-ef7d2c8a9fe188ee138101ec839246303972ac0d.tar.bz2
- Patch #34920 by tangent: reorganized the node submission form a bit.
Diffstat (limited to 'modules/path.module')
-rw-r--r--modules/path.module5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/path.module b/modules/path.module
index 2ef57f190..078900a25 100644
--- a/modules/path.module
+++ b/modules/path.module
@@ -192,9 +192,10 @@ function path_nodeapi(&$node, $op, $arg) {
break;
case 'form':
- $form['path'] = array('#type' => 'textfield', '#title' => t('Path alias'), '#weight' => -16, '#default_value' => $node->path, '#size' => 60, '#maxlength' => 250, '#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.'));
+ $form['path'] = array('#type' => 'fieldset', '#title' => t('URL path settings'), '#collapsible' => TRUE, '#collapsed' => TRUE);
+ $form['path']['alias'] = array('#type' => 'textfield', '#default_value' => $node->path, '#size' => 60, '#maxlength' => 250, '#collapsible' => 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.'));
if ($node->path) {
- $form['pid'] = array('#type' => 'hidden', '#value' => db_result(db_query("SELECT pid FROM {url_alias} WHERE dst = '%s'", $node->path)));
+ $form['path']['pid'] = array('#type' => 'hidden', '#value' => db_result(db_query("SELECT pid FROM {url_alias} WHERE dst = '%s'", $node->path)));
}
return $form;