@@ -171,18 +171,18 @@ function node_form(&$form_state, $node) {
'#weight'=>20,
);
$form['author']['name']=array(
'#type'=>'textfield',
'#title'=>t('Authored by'),
'#maxlength'=>60,
'#autocomplete_path'=>'user/autocomplete',
'#default_value'=>$node->name?$node->name:'',
'#weight'=>-1,
'#type'=>'textfield',
'#title'=>t('Authored by'),
'#maxlength'=>60,
'#autocomplete_path'=>'user/autocomplete',
'#default_value'=>$node->name?$node->name:'',
'#weight'=>-1,
'#description'=>t('Leave blank for %anonymous.',array('%anonymous'=>variable_get('anonymous',t('Anonymous')))),
);
$form['author']['date']=array(
'#type'=>'textfield',
'#title'=>t('Authored on'),
'#maxlength'=>25,
'#type'=>'textfield',
'#title'=>t('Authored on'),
'#maxlength'=>25,
'#description'=>t('Format: %time. Leave blank to use the time of form submission.',array('%time'=>!empty($node->date)?$node->date:format_date($node->created,'custom','Y-m-d H:i:s O'))),
);
...
...
@@ -200,25 +200,25 @@ function node_form(&$form_state, $node) {
'#weight'=>25,
);
$form['options']['status']=array(
'#type'=>'checkbox',
'#title'=>t('Published'),
'#type'=>'checkbox',
'#title'=>t('Published'),
'#default_value'=>$node->status,
);
$form['options']['promote']=array(
'#type'=>'checkbox',
'#title'=>t('Promoted to front page'),
'#type'=>'checkbox',
'#title'=>t('Promoted to front page'),
'#default_value'=>$node->promote,
);
$form['options']['sticky']=array(
'#type'=>'checkbox',
'#title'=>t('Sticky at top of lists'),
'#type'=>'checkbox',
'#title'=>t('Sticky at top of lists'),
'#default_value'=>$node->sticky,
);
// These values are used when the user has no administrator access.
foreach(array('uid','created')as$key){
$form[$key]=array(
'#type'=>'value',
'#type'=>'value',
'#value'=>$node->$key,
);
}
...
...
@@ -465,7 +465,7 @@ function node_form_submit_build_node($form, &$form_state) {
*/
functionnode_delete_confirm(&$form_state,$node){
$form['nid']=array(
'#type'=>'value',
'#type'=>'value',
'#value'=>$node->nid,
);
...
...
@@ -473,7 +473,7 @@ function node_delete_confirm(&$form_state, $node) {
t('Are you sure you want to delete %title?',array('%title'=>$node->title)),
$result=db_query('SELECT name, title, weight, visibility FROM {profile_fields} WHERE visibility IN (%d, %d) ORDER BY weight',PROFILE_PUBLIC,PROFILE_PUBLIC_LISTINGS);