You are here

function get_calendar_node in Calendar 6.2

Same name and namespace in other branches
  1. 5.2 jcalendar/jcalendar.module \get_calendar_node()

Get calendar node for popup

Parameters

integer nid Node id.:

string id Date field unique id.:

Return value

string HTML for node

1 string reference to 'get_calendar_node'
jcalendar_menu in jcalendar/jcalendar.module
Implemetation of hook_menu()

File

jcalendar/jcalendar.module, line 29
jQuery Calendar UI features.

Code

function get_calendar_node($nid, $id) {
  $GLOBALS['devel_shutdown'] = FALSE;
  if (is_numeric($nid)) {
    if ($node = node_load($nid)) {
      if (node_access("view", $node)) {
        $node->date_id = $id;
        $node->date_repeat_show = FALSE;
        print theme('jcalendar_view', $node);
      }
    }
  }
}