function mostpopular_get_sid_for_module in Drupal Most Popular 6
Gets the service ID for the service defined by 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
integer The service ID of the service, or NULL of no matching service could be found.
File
- ./
mostpopular.api.php, line 268 - Provides functions for other modules to use to interact with the Most Popular data.
Code
function mostpopular_get_sid_for_module($module, $delta) {
$service = MostPopularService::fetchByModule($module, $delta);
if (isset($service)) {
return $service->sid;
}
return NULL;
}