Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eric Rasmussen
UNL-CMS
Commits
8a8e47be
Commit
8a8e47be
authored
Nov 14, 2012
by
Eric Rasmussen
Browse files
[gh-529] Add mysites page with hook_menu so it can be access controlled
parent
7a92754d
Changes
1
Hide whitespace changes
Inline
Side-by-side
sites/all/modules/unl_multisite/unl_multisite.module
View file @
8a8e47be
...
...
@@ -22,7 +22,7 @@ function unl_multisite_block_info() {
function
unl_multisite_block_view
(
$delta
=
''
)
{
switch
(
$delta
)
{
case
'my_sites'
:
return
unl_block_view_my_sites
();
return
unl_
multisite_
block_view_my_sites
();
break
;
default
:
return
array
();
...
...
@@ -94,6 +94,12 @@ EOF;
function
unl_multisite_menu
()
{
$items
=
array
();
$items
[
'mysites'
]
=
array
(
'title'
=>
'My Sites'
,
'description'
=>
'Your sites.'
,
'access callback'
=>
'user_is_logged_in'
,
'page callback'
=>
'unl_multisite_block_view_my_sites'
,
);
$items
[
'admin/sites/unl'
]
=
array
(
'title'
=>
'Site Management'
,
'description'
=>
'Create and manage sites and aliases.'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment