public static function MostPopularInterval::create in Drupal Most Popular 7
Same name and namespace in other branches
- 6 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
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,
));
}