I'd like to add support for textile formatting, could you point me in the right direction in terms of hooks/api?

Comments

quicksketch’s picture

I already answered this in IRC, but for posterity:

Insert provides two hooks:
- hook_insert_styles()
- hook_insert_content()

You can view the .inc files that come with Insert to view samples of how these hooks are implemented for core modules.

mikey_p’s picture

Project: Insert » Textile
Version: 7.x-1.0 » 7.x-2.x-dev
Assigned: Unassigned » mikey_p
Category: support » feature

Assigning to myself for now.

To the maintainers of Textile, would you support this feature in the main textile module, or would you rather see it in a submodule?

Anonymous’s picture

Status: Active » Postponed (maintainer needs more info)

If you can provide a patch for the 7.x-2.x branch, I will be happy to apply it. It doesn't seem a good idea to create a module just for implementing two hooks. Do those hooks require much code?