Skip to content
Snippets Groups Projects
Commit 1eb8b2c1 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #26643: Restore accidentally lost "my blog" menu item.

parent bd055961
No related branches found
No related tags found
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
...@@ -259,6 +259,9 @@ function blog_menu($may_cache) { ...@@ -259,6 +259,9 @@ function blog_menu($may_cache) {
'callback' => 'blog_page', 'callback' => 'blog_page',
'access' => user_access('access content'), 'access' => user_access('access content'),
'type' => MENU_SUGGESTED_ITEM); 'type' => MENU_SUGGESTED_ITEM);
$items[] = array('path' => 'blog/'. $user->uid, 'title' => t('my blog'),
'access' => user_access('edit own blog'),
'type' => MENU_DYNAMIC_ITEM);
} }
return $items; return $items;
......
...@@ -259,6 +259,9 @@ function blog_menu($may_cache) { ...@@ -259,6 +259,9 @@ function blog_menu($may_cache) {
'callback' => 'blog_page', 'callback' => 'blog_page',
'access' => user_access('access content'), 'access' => user_access('access content'),
'type' => MENU_SUGGESTED_ITEM); 'type' => MENU_SUGGESTED_ITEM);
$items[] = array('path' => 'blog/'. $user->uid, 'title' => t('my blog'),
'access' => user_access('edit own blog'),
'type' => MENU_DYNAMIC_ITEM);
} }
return $items; return $items;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment