You are here

function command_buttons_entities_title in Command Buttons 7

Provide a safe title for an entity button type based upon the URL.

1 call to command_buttons_entities_title()
command_buttons_entity_delete_form_submit in ./command_buttons.admin.inc
Execute node deletion
1 string reference to 'command_buttons_entities_title'
command_buttons_menu in ./command_buttons.module
Implements hook_menu().

File

./command_buttons.module, line 463

Code

function command_buttons_entities_title($type) {
  $type = str_replace('-', '_', $type);
  $entity_info = entity_get_info('command_buttons');
  if (isset($entity_info['bundles'][$type])) {
    return $entity_info['bundles'][$type]['label'];
  }
}