You are here

public static function MostPopularService::getDefault in Drupal Most Popular 6

Same name and namespace in other branches
  1. 7 classes/services.php \MostPopularService::getDefault()

Returns the default service

Return value

MostPopularService The enabled service with the lowest weight.

1 call to MostPopularService::getDefault()
mostpopular_block in ./mostpopular.module
Implements hook_block() to create the most popular block.

File

classes/services.php, line 271
Defines a wrapper for the mostpopular_services table.

Class

MostPopularService
@file Defines a wrapper for the mostpopular_services table.

Code

public static function getDefault() {
  self::fetchAvailable();
  foreach (self::$enabledList as $s) {
    return $s;
  }
  return NULL;
}