2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
$result=db_query("SELECT * FROM node WHERE status = '$status[scheduled]' AND timestamp <= ".time()."");
while($story=db_fetch_object($result)){
db_query("UPDATE node SET status = '$status[queued]', timestamp = '".time()."' WHERE nid = '$story->nid' AND type = 'story'");
}
}
functionstory_find($keys){
global$status,$user;
$find=array();
...
...
@@ -37,6 +46,7 @@ function story_search() {
functionstory_help(){
?>
<P>Scheduled stories: stories that are scheduled to be automatically published at a given date and time. Useful when you have to leave the site alone for a while or when you want to regulate the flow of new content.</P>
<P>Queued stories: user-contributed stories are automatically whisked away to a submission queue for moderators (i.e. registered user) to frown at. Moderators vote whether or not a story should be posted to the front page for discussion.</P>
<P>Posted stories: published stories accessible to all visitors.</P>
<P>Dumped stories: rejected stories that are no longer available to visitors.</P>
...
...
@@ -101,39 +111,37 @@ function story_form($edit = array()) {
$output.="<INPUT TYPE=\"radio\" NAME=\"edit[status]\" VALUE=\"$status[scheduled]\"".($edit[status]==$status[scheduled]?" CHECKED":"")."> scheduled for <INPUT TYPE=\"text\" NAME=\"edit[timestamp]\" SIZE=\"30\" VALUE=\"".date("j F Y G:i",($edit[timetsamp]?$edit[timestamp]:time()))."\"><BR>\n";
$output.="<SMALL><I>The textfield for scheduled stories expects a string containing an English date format of when you want to have your story automatically published. Example input: '".date("j F Y G:i")."', '".date("m/d/y H:i")."', '".date("F j, Y H:i")."', ...</I></SMALL><P>\n";
$result=db_query("SELECT * FROM node WHERE status = '$status[scheduled]' AND timestamp <= ".time()."");
while($story=db_fetch_object($result)){
db_query("UPDATE node SET status = '$status[queued]', timestamp = '".time()."' WHERE nid = '$story->nid' AND type = 'story'");
}
}
functionstory_find($keys){
global$status,$user;
$find=array();
...
...
@@ -37,6 +46,7 @@ function story_search() {
functionstory_help(){
?>
<P>Scheduled stories: stories that are scheduled to be automatically published at a given date and time. Useful when you have to leave the site alone for a while or when you want to regulate the flow of new content.</P>
<P>Queued stories: user-contributed stories are automatically whisked away to a submission queue for moderators (i.e. registered user) to frown at. Moderators vote whether or not a story should be posted to the front page for discussion.</P>
<P>Posted stories: published stories accessible to all visitors.</P>
<P>Dumped stories: rejected stories that are no longer available to visitors.</P>
...
...
@@ -101,39 +111,37 @@ function story_form($edit = array()) {
$output.="<INPUT TYPE=\"radio\" NAME=\"edit[status]\" VALUE=\"$status[scheduled]\"".($edit[status]==$status[scheduled]?" CHECKED":"")."> scheduled for <INPUT TYPE=\"text\" NAME=\"edit[timestamp]\" SIZE=\"30\" VALUE=\"".date("j F Y G:i",($edit[timetsamp]?$edit[timestamp]:time()))."\"><BR>\n";
$output.="<SMALL><I>The textfield for scheduled stories expects a string containing an English date format of when you want to have your story automatically published. Example input: '".date("j F Y G:i")."', '".date("m/d/y H:i")."', '".date("F j, Y H:i")."', ...</I></SMALL><P>\n";