You are here

function command_buttons_entity_title in Command Buttons 7

Provide a safe title for an entity from the entity.

1 string reference to 'command_buttons_entity_title'
command_buttons_menu in ./command_buttons.module
Implements hook_menu().

File

./command_buttons.module, line 502

Code

function command_buttons_entity_title($entity) {
  if (!empty($entity->title)) {
    return $entity->title;
  }
  return t('No title');
}