diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-08-08 17:41:37 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-08-08 17:41:37 -0300 |
commit | 7aae76004ab712a1b32a340234fad6f0637a49cb (patch) | |
tree | 581e6104a401cc68aade07a8f23fffc41507a79e /calendario.module | |
download | calendario-7aae76004ab712a1b32a340234fad6f0637a49cb.tar.gz calendario-7aae76004ab712a1b32a340234fad6f0637a49cb.tar.bz2 |
Initial import
Diffstat (limited to 'calendario.module')
-rw-r--r-- | calendario.module | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/calendario.module b/calendario.module new file mode 100644 index 0000000..5c7a4a4 --- /dev/null +++ b/calendario.module @@ -0,0 +1,46 @@ +<?php + +/** + * @file + * Calendario dos Movimentos Sociais. + */ + +/** + * Implements hook_theme() + */ +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), + ), + ); +} + +/** + * Implements hook_entity_info_alter() + */ +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. + */ +function calendario_widget($view = NULL) { + return theme('embed-widget'); +} |