diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-07-17 03:04:04 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-07-17 03:04:04 +0200 |
commit | 258df5eea2fe7db6b03cf20f3c16357487dc425b (patch) | |
tree | e2dbef308176f031a3502f9f5785883b83b218c4 /apps/calendar/lib | |
parent | 4b8a34df21aca5cb7e38ec16d4d6720e27f543a9 (diff) | |
download | nextcloud-server-258df5eea2fe7db6b03cf20f3c16357487dc425b.tar.gz nextcloud-server-258df5eea2fe7db6b03cf20f3c16357487dc425b.zip |
Added hook for postCreateUser. Probably fix for oc-1265.
Diffstat (limited to 'apps/calendar/lib')
-rw-r--r-- | apps/calendar/lib/hooks.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/calendar/lib/hooks.php b/apps/calendar/lib/hooks.php index 328d2951d23..bc0b02c62b8 100644 --- a/apps/calendar/lib/hooks.php +++ b/apps/calendar/lib/hooks.php @@ -11,7 +11,18 @@ */ class OC_Calendar_Hooks{ /** - * @brief Deletes all Addressbooks of a certain user + * @brief Creates default calendar for a user + * @param paramters parameters from postCreateUser-Hook + * @return array + */ + public static function createUser($parameters) { + OC_Calendar_Calendar::addCalendar($parameters['uid'],'Default calendar'); + + return true; + } + + /** + * @brief Deletes all calendars of a certain user * @param paramters parameters from postDeleteUser-Hook * @return array */ |