You are here

public static function MostPopularService::fetchByModule in Drupal Most Popular 7

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

Fetches the service with the given module and delta.

Parameters

string $module: The module defining the service.

string $delta: The delta of the service within the module.

Return value

MostPopularService The service with the given service ID, or null if none could be found.

File

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

Class

MostPopularService
@file Defines a wrapper for the mostpopular_services table.

Code

public static function fetchByModule($module, $delta) {
  self::fetchAvailable();
  if (isset(self::$availableList[$module][$delta])) {
    return self::$availableList[$module][$delta];
  }
  return NULL;
}