timestamp; } variable_set('project_usage_active_weeks', $weeks); } return $weeks; } function project_usage_get_current_active_week() { static $current_week = 0; if (empty($current_week)) { $current_week = array_shift(project_usage_get_active_weeks()); } return $current_week; } /** * Sets the expiry timestamp for cached project usage pages. * * Default is 24 hours. * * @return The UNIX timestamp to expire the page at. */ function project_usage_cache_time() { return time() + variable_get('project_usage_cache_length', 86400); }