/** * Override content to region * Optionally specifying a weight to determine its output placement. * Lower weight is higher: $weight = -100 gets output before 100. * * @param string $name * @param string $content * @param int $weight */ public static function set($name, $content, $weight = 0) { $weights = self::$widgets[$name]; self::$weights = array_diff(self::$weights, $weights); self::$widgets[$name] = array(); self::add($name, $content, $weight); }