You are here

public static function MostPopularInterval::create in Drupal Most Popular 6

Same name and namespace in other branches
  1. 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

MostPopularInterval

1 call to MostPopularInterval::create()
mostpopular_intervals_form in ./mostpopular.admin.inc

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,
  ));
}