$form['author']['name']=array('#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'=>theme('placeholder',variable_get('anonymous','Anonymous')))));
$form['author']['date']=array('#type'=>'textfield','#title'=>t('Authored on'),'#maxlength'=>25,'#description'=>t('Format: %time. Leave blank to use the time of form submission.',array('%time'=>$node->date)));
$form['author']['name']=array('#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'=>theme('placeholder',variable_get('anonymous','Anonymous')))));
$form['author']['date']=array('#type'=>'textfield','#title'=>t('Authored on'),'#maxlength'=>25,'#description'=>t('Format: %time. Leave blank to use the time of form submission.',array('%time'=>$node->date)));
drupal_set_message(t('The field has been created.'));
watchdog('profile',t('Profile field %field added under category %category.',array('%field'=>theme('placeholder',$form_values['title']),'%category'=>theme('placeholder',$form_values['category']))),WATCHDOG_NOTICE,l(t('view'),'admin/settings/profile'));
}
...
...
@@ -331,7 +331,7 @@ function profile_field_form_submit($form_id, $form_values) {
drupal_set_message(t('The field has been updated.'));
}
cache_clear_all();
return'admin/settings/profile';
}
...
...
@@ -346,7 +346,7 @@ function profile_field_delete($fid) {
returnconfirm_form('profile_field_delete',$form,t('Are you sure you want to delete the field %field?',array('%field'=>theme('placeholder',$field->title))),'admin/settings/profile',t('This action cannot be undone. If users have entered values into this field in their profile, these entries will also be deleted. If you want to keep the user-entered data, instead of deleting the field you may wish to <a href="%edit-field">edit this field</a> and change it to a %hidden-field so that it may only be accessed by administrators.',array('%edit-field'=>url('admin/settings/profile/edit/'.$fid),'%hidden-field'=>theme('placeholder',t('hidden profile field'))),t('Delete'),t('Cancel')));
}
...
...
@@ -356,12 +356,12 @@ function profile_field_delete($fid) {
db_query('DELETE FROM {profile_fields} WHERE fid = %d',$form_values['fid']);
db_query('DELETE FROM {profile_values} WHERE fid = %d',$form_values['fid']);
cache_clear_all();
drupal_set_message(t('The field %field has been deleted.',array('%field'=>theme('placeholder',$form_values['title']))));
watchdog('profile',t('Profile field %field deleted.',array('%field'=>theme('placeholder',$form_values['title']))),WATCHDOG_NOTICE,l(t('view'),'admin/settings/profile'));