aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2011-06-29 22:49:49 -0700
committerKevin Jardine <kevinjardine@yahoo.com>2011-06-29 22:49:49 -0700
commit52ddfd1b76cb3e5fbb2a31eb5a3c738bb0d61b54 (patch)
tree57933cc7cd122d59867191f6fbca5d3b5041d5b1 /start.php
parent0a013cd9833a20d3b6334d80dba581bbbb2ce756 (diff)
parentb92a38c8a696db700beafab2d1538bd74c302d94 (diff)
downloadelgg-52ddfd1b76cb3e5fbb2a31eb5a3c738bb0d61b54.tar.gz
elgg-52ddfd1b76cb3e5fbb2a31eb5a3c738bb0d61b54.tar.bz2
Merge pull request #2 from cash/1.7_and_above
removing functions deprecated in 1.7
Diffstat (limited to 'start.php')
-rw-r--r--start.php21
1 files changed, 9 insertions, 12 deletions
diff --git a/start.php b/start.php
index d12f56848..57007fa77 100644
--- a/start.php
+++ b/start.php
@@ -33,8 +33,7 @@
register_entity_url_handler('event_calendar_url','object', 'event_calendar');
// Register granular notification for this type
- if (is_callable('register_notification_object'))
- register_notification_object('object', 'event_calendar', elgg_echo('event_calendar:new_event'));
+ register_notification_object('object', 'event_calendar', elgg_echo('event_calendar:new_event'));
// Set up menu for users
if (isloggedin()) {
@@ -53,26 +52,24 @@
if (!$group_calendar || $group_calendar != 'no') {
$group_profile_display = get_plugin_setting('group_profile_display', 'event_calendar');
if (!$group_profile_display || $group_profile_display == 'right') {
- extend_view('groups/right_column', 'event_calendar/groupprofile_calendar');
+ elgg_extend_view('groups/right_column', 'event_calendar/groupprofile_calendar');
} else if ($group_profile_display == 'left') {
- extend_view('groups/left_column', 'event_calendar/groupprofile_calendar');
+ elgg_extend_view('groups/left_column', 'event_calendar/groupprofile_calendar');
}
}
//add to the css
- extend_view('css', 'event_calendar/css');
+ elgg_extend_view('css', 'event_calendar/css');
//add a widget
add_widget_type('event_calendar',elgg_echo("event_calendar:widget_title"),elgg_echo('event_calendar:widget:description'));
// add the event calendar group tool option
- if (function_exists('add_group_tool_option')) {
- $event_calendar_group_default = get_plugin_setting('group_default', 'event_calendar');
- if (!$event_calendar_group_default || ($event_calendar_group_default == 'yes')) {
- add_group_tool_option('event_calendar',elgg_echo('event_calendar:enable_event_calendar'),true);
- } else {
- add_group_tool_option('event_calendar',elgg_echo('event_calendar:enable_event_calendar'),false);
- }
+ $event_calendar_group_default = get_plugin_setting('group_default', 'event_calendar');
+ if (!$event_calendar_group_default || ($event_calendar_group_default == 'yes')) {
+ add_group_tool_option('event_calendar',elgg_echo('event_calendar:enable_event_calendar'),true);
+ } else {
+ add_group_tool_option('event_calendar',elgg_echo('event_calendar:enable_event_calendar'),false);
}
// if autogroup is set, listen and respond to join/leave events