aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-03-27 12:00:43 +0000
committerCash Costello <cash.costello@gmail.com>2009-03-27 12:00:43 +0000
commite6728ce892f06633827264e3b47e1f7bcebae780 (patch)
treeb76c56b749847ed33f7cb54ae835095f70fa100e /start.php
parent569d4dce1dc656b90b5c5ac193785570c75dcecf (diff)
downloadelgg-e6728ce892f06633827264e3b47e1f7bcebae780.tar.gz
elgg-e6728ce892f06633827264e3b47e1f7bcebae780.tar.bz2
can now enable/disable photo albums for groups
Diffstat (limited to 'start.php')
-rw-r--r--start.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/start.php b/start.php
index a0162319c..660e20de5 100644
--- a/start.php
+++ b/start.php
@@ -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');
+ }
}
}