Active
Project:
Filter Macros
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2009 at 04:24 UTC
Updated:
2 Feb 2009 at 09:48 UTC
The example code in README.txt is missing a piece of very crucial information: case 'info':.
After a long debug session, I finally figure out why the example code in README.txt and the macro [example] just does absolutely nothing. I keep seeing tag['style'] == 'ignore' and nothing gets executed in the filter. Well, that because there is no
case 'info':
return array('style' => 'single');
Looking at function filter_macros_process(), I see 'style' can be 'no-tag', 'single-balance', 'multi-balance', 'nested', 'single'. I guess also 'ignore', too. Can you document a little on how to use these? That kind of info can be returned when $op == 'info'? and how do they relate to the tag?
Thanks! This is a very nifty module!
Comments
Comment #1
mattyoung commentedYour 'style' module in http://drupal.org/node/333522 is a very good sample. It shows all tag styles. It's great! Thanks!
Comment #2
casey commentedSoon I'll add some documenation for this module. And a stable version.