$output.=form_select("Items per block","import_block_limit",variable_get("import_block_limit",15),$number,"The maximum number of news items displayed in one block.");
$output.=form_select("Items per page","import_page_limit",variable_get("import_page_limit",75),$number,"The maximum number of news items displayed on one page.");
$output.=form_select("Items per block","import_block_limit",variable_get("import_block_limit",15),$number,"The maximum number of news items displayed in one block.");
$output.=form_select("Items per page","import_page_limit",variable_get("import_page_limit",75),$number,"The maximum number of news items displayed on one page.");
$output.=form_select(t("First day of week"),"default_firstday",variable_get("default_firstday",0),array(0=>t("Sunday"),1=>t("Monday"),2=>t("Tuesday"),3=>t("Wednesday"),4=>t("Thursday"),5=>t("Friday"),6=>t("Saturday")),t("The first day of the week. By changing this value you choose how the calendar block is rendered."));
$output.=form_select(t("First day of week"),"default_firstday",variable_get("default_firstday",0),array(0=>t("Sunday"),1=>t("Monday"),2=>t("Tuesday"),3=>t("Wednesday"),4=>t("Thursday"),5=>t("Friday"),6=>t("Saturday")),t("The first day of the week. By changing this value you choose how the calendar block is rendered."));
$output=form_textarea(t("Explanation or submission guidelines"),"blog_help",variable_get("blog_help",""),55,4,t("This text is displayed at the top of the blog submission form. It's useful for helping or instructing your users."));
$words=t("words");
$output.=form_select(t("Minimum number of words in a blog entry"),"minimum_blog_size",variable_get("minimum_blog_size",0),array(0=>"0 $words",10=>"10 $words",25=>"25 $words",50=>"50 $words",75=>"75 $words",100=>"100 $words",125=>"125 $words",150=>"150 $words",175=>"175 $words",200=>"200 $words"),t("The minimum number of words a personal blog entry should contain. This is useful to rule out submissions that do not meet the site's standards, such as short test posts."));
...
...
@@ -185,7 +185,7 @@ function blog_form(&$node, &$help, &$error) {
$output=form_textarea(t("Explanation or submission guidelines"),"blog_help",variable_get("blog_help",""),55,4,t("This text is displayed at the top of the blog submission form. It's useful for helping or instructing your users."));
$words=t("words");
$output.=form_select(t("Minimum number of words in a blog entry"),"minimum_blog_size",variable_get("minimum_blog_size",0),array(0=>"0 $words",10=>"10 $words",25=>"25 $words",50=>"50 $words",75=>"75 $words",100=>"100 $words",125=>"125 $words",150=>"150 $words",175=>"175 $words",200=>"200 $words"),t("The minimum number of words a personal blog entry should contain. This is useful to rule out submissions that do not meet the site's standards, such as short test posts."));
...
...
@@ -185,7 +185,7 @@ function blog_form(&$node, &$help, &$error) {
@@ -20,7 +20,7 @@ function comment_system($field) {
return$system[$field];
}
functioncomment_conf_options(){
functioncomment_settings(){
global$cmodes,$corder;
$output.=form_select(t("Default display mode"),"comment_default_mode",variable_get("comment_default_mode",4),$cmodes,t("The default view for comments. Expanded views display the body of the comment. Threaded views keep replies together."));
...
...
@@ -340,7 +340,7 @@ function comment_links($comment, $return = 1) {
$links[]=l(t("reply to this comment"),"comment/reply/$comment->nid/$comment->cid");
$output=form_item(t("Comment viewing options"),$output,t("Select your preferred way to display the comments and click 'Update settings' to submit your changes."));
$output=form_item(t("Comment viewing options"),$output,t("Select your preferred way to display the comments and click 'Save settings' to submit your changes."));
@@ -20,7 +20,7 @@ function comment_system($field) {
return$system[$field];
}
functioncomment_conf_options(){
functioncomment_settings(){
global$cmodes,$corder;
$output.=form_select(t("Default display mode"),"comment_default_mode",variable_get("comment_default_mode",4),$cmodes,t("The default view for comments. Expanded views display the body of the comment. Threaded views keep replies together."));
...
...
@@ -340,7 +340,7 @@ function comment_links($comment, $return = 1) {
$links[]=l(t("reply to this comment"),"comment/reply/$comment->nid/$comment->cid");
$output=form_item(t("Comment viewing options"),$output,t("Select your preferred way to display the comments and click 'Update settings' to submit your changes."));
$output=form_item(t("Comment viewing options"),$output,t("Select your preferred way to display the comments and click 'Save settings' to submit your changes."));
@@ -14,7 +14,7 @@ function development_system($field) {
return$system[$field];
}
functiondevelopment_conf_options(){
functiondevelopment_settings(){
$output=form_select(t("Display query log"),"dev_query",variable_get("dev_query",0),array(t("Disabled"),t("Enabled")),t("Display a log of the database queries needed to generate the current page, and the execution time for each."));
@@ -20,7 +20,7 @@ function drupal_system($field) {
return$system[$field];
}
functiondrupal_conf_options(){
functiondrupal_settings(){
$output.=form_textfield("Drupal XML-RPC server","drupal_server",variable_get("drupal_server","http://www.drupal.org/xmlrpc.php"),55,128,"The URL of your root Drupal XML-RPC server.");
$output.=form_select("Drupal directory","drupal_directory",variable_get("drupal_directory",0),array("Disabled","Enabled"),"If enabled, your Drupal site will make itself know to the Drupal directory at the specified Drupal XML-RPC server. For this to work properly, you have to set your site's name, e-mail address, slogan and mission statement. When the \"Drupal XML-RPC server\" field is set to \"http://www.drupal.org/xmlrpc.php\", your website will get listed on <a href=\"http://www.drupal.org/\">http://www.drupal.org/</a>. Requires crontab.");
@@ -20,7 +20,7 @@ function drupal_system($field) {
return$system[$field];
}
functiondrupal_conf_options(){
functiondrupal_settings(){
$output.=form_textfield("Drupal XML-RPC server","drupal_server",variable_get("drupal_server","http://www.drupal.org/xmlrpc.php"),55,128,"The URL of your root Drupal XML-RPC server.");
$output.=form_select("Drupal directory","drupal_directory",variable_get("drupal_directory",0),array("Disabled","Enabled"),"If enabled, your Drupal site will make itself know to the Drupal directory at the specified Drupal XML-RPC server. For this to work properly, you have to set your site's name, e-mail address, slogan and mission statement. When the \"Drupal XML-RPC server\" field is set to \"http://www.drupal.org/xmlrpc.php\", your website will get listed on <a href=\"http://www.drupal.org/\">http://www.drupal.org/</a>. Requires crontab.");
$output.=form_select("Items per block","import_block_limit",variable_get("import_block_limit",15),$number,"The maximum number of news items displayed in one block.");
$output.=form_select("Items per page","import_page_limit",variable_get("import_page_limit",75),$number,"The maximum number of news items displayed on one page.");
$output.=form_select(t("Number of posts on main page"),"default_nodes_main",variable_get("default_nodes_main",10),array(1=>1,2=>2,3=>3,4=>4,5=>5,6=>6,7=>7,8=>8,9=>9,10=>10,15=>15,20=>20,25=>25,30=>30),t("The default maximum number of posts to display on overview pages such as the main page."));
$output.=form_select(t("Length of trimmed posts"),"teaser_length",variable_get("teaser_length",600),array(0=>t("Unlimited"),200=>t("200 characters"),400=>t("400 characters"),600=>t("600 characters"),800=>t("800 characters"),1000=>t("1000 characters"),1200=>t("1200 characters"),1400=>t("1400 characters"),1600=>t("1600 characters"),1800=>t("1800 characters"),2000=>t("2000 characters")),t("The maximum number of characters used in the trimmed version of a post. Drupal will use this setting to determine at which offset long posts should be trimmed. The trimmed version of a post is typically used as a teaser when displaying the post on the main page, in XML feeds, etc. To disable teasers, set to 'Unlimited'."));
return$output;
...
...
@@ -742,7 +742,7 @@ function node_validate($node, &$error) {
*/
if(isset($node->title)&&!$node->title){
$error["title"]=theme_invoke("theme_error",t("You have to specify a valid title."));
$error["title"]=theme("theme_error",t("You have to specify a valid title."));
}
if(user_access("administer nodes")){
...
...
@@ -775,7 +775,7 @@ function node_validate($node, &$error) {
$node->uid=$account->uid;
}
else{
$error["name"]=theme_invoke("theme_error",t("The name '%u' does not exist.",array("%u"=>$node->name)));
$error["name"]=theme("theme_error",t("The name '%u' does not exist.",array("%u"=>$node->name)));
}
/*
...
...
@@ -786,7 +786,7 @@ function node_validate($node, &$error) {
$node->created=strtotime($node->date);
}
else{
$error["date"]=theme_invoke("theme_error",t("You have to specifiy a valid date."));
$error["date"]=theme("theme_error",t("You have to specifiy a valid date."));
$output.=form_select(t("Number of posts on main page"),"default_nodes_main",variable_get("default_nodes_main",10),array(1=>1,2=>2,3=>3,4=>4,5=>5,6=>6,7=>7,8=>8,9=>9,10=>10,15=>15,20=>20,25=>25,30=>30),t("The default maximum number of posts to display on overview pages such as the main page."));
$output.=form_select(t("Length of trimmed posts"),"teaser_length",variable_get("teaser_length",600),array(0=>t("Unlimited"),200=>t("200 characters"),400=>t("400 characters"),600=>t("600 characters"),800=>t("800 characters"),1000=>t("1000 characters"),1200=>t("1200 characters"),1400=>t("1400 characters"),1600=>t("1600 characters"),1800=>t("1800 characters"),2000=>t("2000 characters")),t("The maximum number of characters used in the trimmed version of a post. Drupal will use this setting to determine at which offset long posts should be trimmed. The trimmed version of a post is typically used as a teaser when displaying the post on the main page, in XML feeds, etc. To disable teasers, set to 'Unlimited'."));
return$output;
...
...
@@ -742,7 +742,7 @@ function node_validate($node, &$error) {
*/
if(isset($node->title)&&!$node->title){
$error["title"]=theme_invoke("theme_error",t("You have to specify a valid title."));
$error["title"]=theme("theme_error",t("You have to specify a valid title."));
}
if(user_access("administer nodes")){
...
...
@@ -775,7 +775,7 @@ function node_validate($node, &$error) {
$node->uid=$account->uid;
}
else{
$error["name"]=theme_invoke("theme_error",t("The name '%u' does not exist.",array("%u"=>$node->name)));
$error["name"]=theme("theme_error",t("The name '%u' does not exist.",array("%u"=>$node->name)));
}
/*
...
...
@@ -786,7 +786,7 @@ function node_validate($node, &$error) {