You are here

function mailchimp_automations_entity_info_label in Mailchimp 7.4

Same name and namespace in other branches
  1. 7.5 modules/mailchimp_automations/mailchimp_automations.module \mailchimp_automations_entity_info_label()

Entity label callback.

1 string reference to 'mailchimp_automations_entity_info_label'
mailchimp_automations_entity_info in modules/mailchimp_automations/mailchimp_automations.module
Implements hook_entity_info().

File

modules/mailchimp_automations/mailchimp_automations.module, line 45
Module file for mailchimp_automations.

Code

function mailchimp_automations_entity_info_label($entity, $entity_type) {
  return empty($entity) ? 'New Mailchimp Automation' : $entity->label;
}