parent()); } 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("gallery", "choose_default_tookit", null)) { graphics::choose_default_toolkit(); module::clear_var("gallery", "choose_default_tookit"); } } static function item_index_data($item, $data) { $data[] = $item->description; $data[] = $item->name; $data[] = $item->title; } static function get_sort_fields($sort_order) { $sort_order->fields = array_merge($sort_order->fields, array("weight" => t("Manual"), "created" => t("Date uploaded"), "title" => t("Title"), "updated" => t("Date modified"), "view_count" => t("Number of views"), "rand_key" => t("Random"))); } }