Skip to content
Snippets Groups Projects
Commit 79a5700c authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Usability improvement: made the markers easier to understand.

parent 4650917c
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
...@@ -739,8 +739,13 @@ function theme_block($block) { ...@@ -739,8 +739,13 @@ function theme_block($block) {
*/ */
function theme_mark($type = MARK_NEW) { function theme_mark($type = MARK_NEW) {
global $user; global $user;
if ($user->uid && $type != MARK_READ) { if ($user->uid) {
return '<span class="marker">*</span>'; if ($type == MARK_NEW) {
return '<span class="marker">'. t('new') .'</span>';
}
else if ($type == MARK_UPDATED) {
return '<span class="marker">'. t('updated') .'</span>';
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment