diff --git a/modules/user_homes/helpers/user_homes_event.php b/modules/user_homes/helpers/user_homes_event.php index 561666df..a866de52 100644 --- a/modules/user_homes/helpers/user_homes_event.php +++ b/modules/user_homes/helpers/user_homes_event.php @@ -161,4 +161,17 @@ class user_homes_event_Core { } return; } + + static function show_user_profile($data) { + $home = ORM::factory("user_home")->where("id", "=", $data->user->id)->find(); + + if ($home->loaded()) { + $view = new View("user_profile_home.html"); + $item = ORM::factory("item")->where("id", "=", $home->home)->find(); + if ($item->loaded()) { + $view->item = $item; + $data->content[] = (object)array("title" => t("Home album"), "view" => $view); + } + } + } } diff --git a/modules/user_homes/views/user_profile_home.html.php b/modules/user_homes/views/user_profile_home.html.php new file mode 100644 index 00000000..33e8c5c2 --- /dev/null +++ b/modules/user_homes/views/user_profile_home.html.php @@ -0,0 +1,10 @@ + +
+ +