itemids) > 1) { return ; } $item = ORM::factory("item") ->in("id", $event_parms->itemids[0]) ->find(); $generalPane = new View("organize_edit_general.html"); $generalPane->item = $item; $event_parms->panes[] = array("label" => $item->is_album() ? t("Edit Album") : t("Edit Photo"), "content" => $generalPane); if ($item->is_album()) { $sortPane = new View("organize_edit_sort.html"); $sortPane->sort_by = $item->sort_column; $sortPane->sort_order = empty($item->sort_order) || $item->sort_order == "ASC" ? t("Ascending") : t("Descending"); $event_parms->panes[] = array("label" => t("Sort Order"), "content" => $sortPane); } } static function user_login($user) { // If this user is an admin, check to see if there are any post-install tasks that we need // to run and take care of those now. if ($user->admin && module::get_var("core", "choose_default_tookit", null)) { graphics::choose_default_toolkit(); module::clear_var("core", "choose_default_tookit"); } } }