// @todo do not let the user change this name during the edit process.
$form['name']=array(
'#type'=>'textfield',
'#title'=>t('Name'),
'#description'=>t('The machine readable name of this page. It must be unique, and it must contain only alphanumeric characters and underscores.'),
'#description'=>t('The machine readable name of this page. It must be unique, and it must contain only alphanumeric characters and underscores. Once created, you will not be able to change this value!'),
'#default_value'=>$page->name,
);
if(isset($page->pid)){
$form['name']['#disabled']=TRUE;
}
$form['admin_title']=array(
'#type'=>'textfield',
'#title'=>t('Administrative title'),
...
...
@@ -448,7 +451,7 @@ function delegator_page_form_basic(&$form, &$form_state) {
$form['path']=array(
'#type'=>'textfield',
'#title'=>t('Path'),
'#description'=>t('The URL path to get to this page. You may create placeholders in the path by using %, or named placeholders by using %name. For example: "node/%node/foo", "forum/%forum" or "dashboard/%". Named placeholders can have more information attached to them on the arguments form.'),
'#description'=>t('The URL path to get to this page. You may create placeholders in the path by using %, or named placeholders by using %name. For example: "node/%node/foo", "forum/%forum" or "dashboard/%input". Named placeholders can be turned into contexts on the arguments form.'),
'#default_value'=>$page->path,
);
}
...
...
@@ -461,7 +464,38 @@ function delegator_page_form_basic_validate_filter($value) {