You are here

function date_repeat_page in Date 7

Same name and namespace in other branches
  1. 5.2 date/date.module \date_repeat_page()
  2. 6.2 date/date.module \date_repeat_page()
1 string reference to 'date_repeat_page'
date_menu in ./date.module
Implements hook_menu().

File

./date.module, line 93

Code

function date_repeat_page($entity, $entity_type = 'node') {
  drupal_set_title($entity->title);
  $entity->date_repeat_show_all = TRUE;
  $entity->content = array();
  $field_names = date_repeat_fields($entity, $entity_type);
  $output = '';
  foreach ($field_names as $field_name) {
    $output .= drupal_render(field_view_field($entity_type, $entity, $field_name, 'full'));
  }
  return $output;
}