array( 'template' => 'calendario-embed-widget', 'variables' => array('period' => NULL, 'type' => NULL), ), ); } /** * Implements hook_entity_info_alter() * * @todo * Change 'uri callback' from taxonomy terms to point to calendars. */ function calendario_entity_info_alter(&$entity_info) { // Set the controller class for nodes to an alternate implementation of the // DrupalEntityController interface. /* *$entity_info['node']['controller class'] = 'MyCustomNodeController'; */ /* Your code here */ } /** * Include a calendar widget. * * @todo * Set $period and $type. */ function calendario_widget($view = NULL) { return theme('embed-widget'); } /** * Implements hook_views_post_render() */ function calendario_views_post_render(&$view, &$output, &$cache) { if (substr($view->name, 0, 10) == 'calendario' && substr($view->name, 0, 17) != 'calendario_widget') { $output .= calendario_widget($view); } }