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

mattyoung’s picture

Your 'style' module in http://drupal.org/node/333522 is a very good sample. It shows all tag styles. It's great! Thanks!

casey’s picture

Soon I'll add some documenation for this module. And a stable version.