It look like an implementation of hook_heartbeat_template_info() doesn't work.

I created a custom function named 'module_name_heartbeat_template_info()' with a template code, but it doesn't appear in an templates edit UI, all caches reflushed many times. Nothing.

I added the same code directly to heartbeat_defaults_heartbeat_template_info() and it works. So my guess there is something wrong with hook_heartbeat_template_info().

At first, I guess, there is a type, because system sees hook_defaults_heartbeat_template_info() and there is no hook_defaults_heartbeat_template_info() at all.
But hook_defaults_heartbeat_template_info() doesn't work either. Guess that the hook isn't hooking somewhere.

Comments

timonweb’s picture

*there is a typo

Stalski’s picture

Heartbeat relies on ctools for the export. Check the heartbeat.api.php documentation file inside for more information.
If you use the bulk exporter of ctools, you will get the opportunity to create your templates in the ui en export them with ctools. The nice thing here is that you can enter a module name and it creates the template_info hook AND the ctools dependency hook for you.

When heartbeat development is finished, I'll release an alpha and add some info on the project page.

Success.

Stalski’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.