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
@@ -61,7 +61,7 @@ function blog_user($type, &$edit, &$user) {
...
@@ -61,7 +61,7 @@ function blog_user($type, &$edit, &$user) {
functionblog_help($path,$arg){
functionblog_help($path,$arg){
switch($path){
switch($path){
case'admin/help#blog':
case'admin/help#blog':
$output='<p>'.t('The blog module allows registered users to maintain an online journal, or <em>blog</em>. Blogs are made up of individual <em>blog entries</em>, and the blog entries are most often displayed in descending order by creation time.').'</p>';
$output='<p>'.t('The blog module allows registered users to maintain an online journal, or <em>blog</em>. Blogs are made up of individual <em>blog entries</em>, and the blog entries are most often displayed in descending order by creation time.').'</p>';
$output.='<p>'.t('There is an (optional) <em>Blogs</em> menu item added to the Navigation menu, which displays all blogs available on your site, and a <em>My blog</em> item displaying the current user\'s blog entries. The <em>Blog entry</em> menu item under <em>Create content</em> allows new blog entries to be created.').'</p>';
$output.='<p>'.t('There is an (optional) <em>Blogs</em> menu item added to the Navigation menu, which displays all blogs available on your site, and a <em>My blog</em> item displaying the current user\'s blog entries. The <em>Blog entry</em> menu item under <em>Create content</em> allows new blog entries to be created.').'</p>';
$output.='<p>'.t('Each blog entry is displayed with an automatic link to other blogs created by the same user. By default, blog entries have comments enabled and are automatically promoted to the site front page. The blog module also creates a <em>Recent blog posts</em> block that may be enabled at the <a href="@blocks">blocks administration page</a>.',array('@blocks'=>url('admin/build/block'))).'</p>';
$output.='<p>'.t('Each blog entry is displayed with an automatic link to other blogs created by the same user. By default, blog entries have comments enabled and are automatically promoted to the site front page. The blog module also creates a <em>Recent blog posts</em> block that may be enabled at the <a href="@blocks">blocks administration page</a>.',array('@blocks'=>url('admin/build/block'))).'</p>';
$output.='<p>'.t('When using the aggregator module an automatic <em>blog it</em> icon is displayed next to the items in a feed\'s <em>latest items</em> block. Clicking this icon populates a <em>blog entry</em> with a title (the title of the feed item) and body (a link to the source item on its original site and illustrative content suitable for use in a block quote). Blog authors can use this feature to easily comment on items of interest that appear in aggregator feeds from other sites. To use this feature, be sure to <a href="@modules">enable</a> the aggregator module, <a href="@feeds">add and configure</a> a feed from another site, and <a href="@blocks">position</a> the feed\'s <em>latest items</em> block.',array('@modules'=>url('admin/build/modules'),'@feeds'=>url('admin/content/aggregator'),'@blocks'=>url('admin/build/block'))).'</p>';
$output.='<p>'.t('When using the aggregator module an automatic <em>blog it</em> icon is displayed next to the items in a feed\'s <em>latest items</em> block. Clicking this icon populates a <em>blog entry</em> with a title (the title of the feed item) and body (a link to the source item on its original site and illustrative content suitable for use in a block quote). Blog authors can use this feature to easily comment on items of interest that appear in aggregator feeds from other sites. To use this feature, be sure to <a href="@modules">enable</a> the aggregator module, <a href="@feeds">add and configure</a> a feed from another site, and <a href="@blocks">position</a> the feed\'s <em>latest items</em> block.',array('@modules'=>url('admin/build/modules'),'@feeds'=>url('admin/content/aggregator'),'@blocks'=>url('admin/build/block'))).'</p>';
...
@@ -78,7 +78,6 @@ function blog_form(&$node) {
...
@@ -78,7 +78,6 @@ function blog_form(&$node) {
$iid=isset($_GET['iid'])?(int)$_GET['iid']:0;
$iid=isset($_GET['iid'])?(int)$_GET['iid']:0;
$type=node_get_types('type',$node);
$type=node_get_types('type',$node);
if(empty($node->body)){
if(empty($node->body)){
// If the user clicked a "blog it" link, we load the data from the
// If the user clicked a "blog it" link, we load the data from the
// database and quote it in the blog.
// database and quote it in the blog.
...
@@ -91,11 +90,11 @@ function blog_form(&$node) {
...
@@ -91,11 +90,11 @@ function blog_form(&$node) {
// Note: $item->description has been validated on aggregation.
// Note: $item->description has been validated on aggregation.
$result=db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"),0,10);
$result=db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.created FROM {node} n WHERE n.type = 'blog' AND n.status = 1 ORDER BY n.created DESC"),0,10);