function addtocal_get_display in Add to Cal 7
Helper function returns current display for menu callbacks.
_type
Parameters
$entity:
$field_name:
$view_mode:
Return value
mixed
3 calls to addtocal_get_display()
- addtocal_download_ics in ./
addtocal.module - Outputs an ICS file containing event information for the selected entity. Called by hook_menu.
- addtocal_google_link in ./
addtocal.module - Redirects to a Google Calendar event. Called by hook_menu().
- addtocal_yahoo_link in ./
addtocal.module - Redirects to a Yahoo Calendar event. Called by hook_menu().
File
- ./
addtocal.module, line 711 - addtocal.module General functions and hook implementations.
Code
function addtocal_get_display($entity, $entity_type, $field_name, $view_mode) {
return field_get_display(field_info_instance($entity_type, $field_name, $entity->type), $view_mode, $entity);
}