drupal 6 - How to render block programmatically with standard theme -


I know how to obtain block data by module_inwoh (),

but standard block theme How to use

Can I give any advice?

Regards

/ div>

  // setup vars $ module = 'system'; $ Delta = 0; // can also be a string // "block operated" block // @see hook_block () // @see module_invoke () $ block = module_invoke ($ module, 'block', 'view', $ delta); // to block $ object =! Convert to blank ($ block)? (Object) $ block: new stud class; $ Block-> Module = $ module; $ Block-> Delta = $ Delta; $ Block-> Area = 'whatever'; Echo theme ('block', $ block);  

It has not tested it but it seems like what you want. This regularly uses the theme function that you are retrieving


Comments