public static function MostPopularInterval::create in Drupal Most Popular 6
Same name and namespace in other branches
- 7 classes/intervals.php \MostPopularInterval::create()
Creates a new, empty interval with the given weight.
Parameters
integer $weight: The weight to assign this interval.
Return value
1 call to MostPopularInterval::create()
File
- classes/
intervals.php, line 64 - Defines a wrapper for the mostpopular_intervals table.
Class
- MostPopularInterval
- @file Defines a wrapper for the mostpopular_intervals table.
Code
public static function create($weight) {
return new MostPopularInterval(array(
'weight' => $weight,
));
}