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

Added a dynamic "administrate" link to the account box.

parent db0c9420
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
......@@ -27,6 +27,11 @@ function menu($name, $module) {
$content .= "<LI><A HREF=\"account.php?op=edit&topic=user\">edit your information</A></LI>\n";
$content .= "<LI><A HREF=\"account.php?op=edit&topic=site\">edit your preferences</A></LI>\n";
$content .= "<LI><A HREF=\"account.php?op=edit&topic=content\">edit site content</A></LI>\n";
if (($user->id) && ($user->permissions == 1 || $user->id == 1)) {
$content .= "<P>\n";
$content .= "<LI><A HREF=\"admin.php\">administrate " . $site_name . "</A></LI>\n";
}
$content .= "
$content .= "<P>\n";
if (ksort($menu)) {
foreach ($menu as $link=>$url) $content .= "<LI><A HREF=\"$url\">$link</A></LI>\n";
......
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