You are here

function wsconfig_class_label in Web Service Data 7

Label callback that refers to the entity classes label method.

1 string reference to 'wsconfig_class_label'
wsconfig_entity_info in modules/wsconfig/wsconfig.module
Implements hook_entity_info().

File

modules/wsconfig/wsconfig.module, line 161
Main module for wsconfig

Code

function wsconfig_class_label($entity) {
  if (isset($entity)) {
    return $entity
      ->label();
  }
  else {
    return "";
  }
}