returnconfirm_form($form,t('Are you sure you want to disable the menu item %menu-item?',array('%menu-item'=>$item['title'])),'admin/build/menu',' ',t('Disable'),t('Cancel'));
return'<p>'.t('To create a new content type, enter the human-readable name, the machine-readable name, and all other relevant fields that are on this page. Once created, users of your site will be able to create posts that are instances of this content type.').'</p>';
return'<p>'.t('The revisions let you track differences between multiple versions of a post.').'</p>';
}
...
...
@@ -1159,11 +1159,10 @@ function node_menu($may_cache) {
foreach(node_get_types()as$type){
if(function_exists($type->module.'_form')){
$name=check_plain($type->name);
$type_url_str=str_replace('_','-',$type->type);
$items[]=array(
'path'=>'node/add/'.$type_url_str,
'title'=>drupal_ucfirst($name),
'title'=>drupal_ucfirst($type->name),
'access'=>node_access('create',$type->type),
);
}
...
...
@@ -1212,11 +1211,26 @@ function node_menu($may_cache) {
'weight'=>1,
'type'=>MENU_CALLBACK);
$revisions_access=((user_access('view revisions')||user_access('administer nodes'))&&node_access('view',$node)&&db_result(db_query('SELECT COUNT(vid) FROM {node_revisions} WHERE nid = %d',arg(1)))>1);
$node->log=t('Copy of the revision from %date.',array('%date'=>format_date($node->revision_timestamp)));
if(module_exists('taxonomy')){
$node->taxonomy=array_keys($node->taxonomy);
}
node_save($node);
drupal_set_message(t('%title has been reverted back to the revision from %revision-date',array('%revision-date'=>format_date($node->revision_timestamp),'%title'=>$node->title)));
returnconfirm_form($form,t('Are you sure you want to revert to the revision from %revision-date?',array('%revision-date'=>format_date($node->revision_timestamp))),'node/'.$node->nid.'/revisions','',t('Revert'),t('Cancel'));
$node->log=t('Copy of the revision from %date.',array('%date'=>format_date($node->revision_timestamp)));
if(module_exists('taxonomy')){
$node->taxonomy=array_keys($node->taxonomy);
}
node_save($node);
drupal_set_message(t('%title has been reverted back to the revision from %revision-date',array('%revision-date'=>format_date($node->revision_timestamp),'%title'=>$node->title)));
returnconfirm_form($form,t('Are you sure you want to delete the revision from %revision-date?',array('%revision-date'=>format_date($node->revision_timestamp))),'node/'.$node->nid.'/revisions',t('This action cannot be undone.'),t('Delete'),t('Cancel'));
$result=db_query('SELECT name, title, weight, visibility FROM {profile_fields} WHERE visibility IN (%d, %d) ORDER BY weight',PROFILE_PUBLIC,PROFILE_PUBLIC_LISTINGS);