You are here

function mostpopular_service_title in Drupal Most Popular 7

Returns the name of a service, for the menu hooks.

Parameters

integer $sid The service ID.:

1 call to mostpopular_service_title()
mostpopular_service_config_form in ./mostpopular.services.inc
1 string reference to 'mostpopular_service_title'
mostpopular_menu in ./mostpopular.module
Implements hook_menu().

File

./mostpopular.module, line 520
The main file for the Most Popular module.

Code

function mostpopular_service_title($sid) {
  $service = mostpopular_service_load($sid);
  if ($service) {
    return t('@name: %title', array(
      '@name' => $service->name,
      '%title' => $service->title,
    ));
  }
}