Commit cd17423a authored by Robert Rollins's avatar Robert Rollins

Implemented hook_hook_info().

parent abb798ed
...@@ -31,8 +31,18 @@ class DateIcalParseException extends DateIcalException {} ...@@ -31,8 +31,18 @@ class DateIcalParseException extends DateIcalException {}
* Implements hook_hook_info(). * Implements hook_hook_info().
*/ */
function date_ical_hook_info() { function date_ical_hook_info() {
// TODO: Finish this. $hooks = array(
// Use two "groups": date_ical_import and date_ical_export. 'date_ical_export_html_alter',
'date_ical_export_raw_event_alter',
'date_ical_export_vevent_alter',
'date_ical_export_vcalendar_alter',
'date_ical_export_post_render_alter',
'date_ical_import_vcalendar_alter',
'date_ical_import_component_alter',
'date_ical_import_timezone_alter',
);
return array_fill_keys($hooks, array('group' => 'date_ical'));
} }
/** /**
......
...@@ -110,8 +110,8 @@ class date_ical_plugin_row_ical_entity extends views_plugin_row { ...@@ -110,8 +110,8 @@ class date_ical_plugin_row_ical_entity extends views_plugin_row {
/** /**
* Preload the list of entities which will appear in the view. * Preload the list of entities which will appear in the view.
* *
* @TODO: When the date is coming in through a relationship, the nid * TODO: When the date is coming in through a relationship, the nid
* of the view is not the right node to use, then we need the related node. * of the view is not the right node to use: we need the related node.
* Need to sort out how that should be handled. * Need to sort out how that should be handled.
*/ */
public function pre_render($values) { public function pre_render($values) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment