function _publication_date_published_at_or_changed_getter in Publication Date 7.2
Publication date or changed getter for hook_entity_property_info_alter()
Parameters
object $entity: The entity object.
Return value
int The publication date (or changed date) as a timestamp get from the entity.
1 string reference to '_publication_date_published_at_or_changed_getter'
File
- ./
publication_date.module, line 399 - Add a field to nodes containing the publication date.
Code
function _publication_date_published_at_or_changed_getter($entity) {
return $entity->published_at_or_changed;
}