diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-27 12:00:43 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-27 12:00:43 +0000 |
commit | e6728ce892f06633827264e3b47e1f7bcebae780 (patch) | |
tree | b76c56b749847ed33f7cb54ae835095f70fa100e /start.php | |
parent | 569d4dce1dc656b90b5c5ac193785570c75dcecf (diff) | |
download | elgg-e6728ce892f06633827264e3b47e1f7bcebae780.tar.gz elgg-e6728ce892f06633827264e3b47e1f7bcebae780.tar.bz2 |
can now enable/disable photo albums for groups
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -40,6 +40,7 @@ register_entity_type('object','image');
register_entity_type('object','album');
+ add_group_tool_option('photos',elgg_echo('tidypics:enablephotos'),true);
}
/**
@@ -94,9 +95,11 @@ }
if (isloggedin() && ($page_owner instanceof ElggGroup)) {
- add_submenu_item(sprintf(elgg_echo("album:user"),$page_owner->name),
- $CONFIG->wwwroot . "pg/photos/owned/" . $page_owner->username,
- 'photo_albums');
+ if ($page_owner->photos_enable != "no") {
+ add_submenu_item( sprintf(elgg_echo('album:group'),$page_owner->name),
+ $CONFIG->wwwroot . "pg/photos/owned/" . $page_owner->username,
+ 'photo_albums');
+ }
}
}
|