]> gitweb.fluxo.info Git - drupal/calendario.git/commitdiff
Cleanup and TODO update
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 8 Aug 2012 22:04:21 +0000 (19:04 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 8 Aug 2012 22:04:21 +0000 (19:04 -0300)
calendario.module

index 23ae7b2ee3354fbfb7a55ed74054d90155eaaa9a..18939b213e16d7a09b41846063779984901c894c 100644 (file)
  */
 function calendario_theme($existing, $type, $theme, $path) {
   return array(
-    /*
-     *'forum_icon' => array(
-     *  'variables' => array('new_posts' => NULL, 'num_posts' => 0, 'comment_mode' => 0, 'sticky' => 0),
-     *),
-     *'status_report' => array(
-     *  'render element' => 'requirements',
-     *  'file' => 'system.admin.inc',
-     *),
-     */
     'embed-widget' => array(
       'template'   => 'calendario-embed-widget',
-      'variables'  => array('' => NULL, '' => NULL),
+      '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
@@ -41,7 +35,8 @@ function calendario_entity_info_alter(&$entity_info) {
 /**
  * Include a calendar widget.
  *
- * @todo: $period, $type
+ * @todo
+ *   Set $period and $type.
  */
 function calendario_widget($view = NULL) {
   return theme('embed-widget');