limewheel/ls-module-sitemap — pull request #7 by doginthehat (2012-07-18 00:22:30+00:00)
Title: Sitemap hooks

Rewrote some of the sitemap module code to allow for other modules to hook into it.

Also provides way to hook into the Sitemap settings page to add extra setting fields (works for checkboxes, text input. Can't find a way to make it work for dropdown since the data function is queried on the original controller, maybe someone has a suggestion)

Main changes:

Moved generator code in separate class (simpler code to pass to the potential event handler)

Made url generation method simpler to use for event handler.

Added events:

* sitemap:onGenerateSitemap
Called when sitemap is generated.
Handler receives Sitemap_Generator object and current Sitemap_Params

* sitemap:onInitSitemapParamsData
Called to provide default parameter values
Handler receives Sitemap_Params object

* sitemap:onExtendSitemapParamsModel
Called when Sitemap_Params model form is generated.
Handler receives Sitemap_Params object