I have a site with custom home pages depending on role. The homepages are assigned with
hook_menu (hook_menu associates a URL with a function that returns a
For one particular role, I need to generate a homepage that incorporates a view. I am looking at a list of views hooks, and not sure were to start.
In summary, how do I display a view that is generated from one of my hook_menu functions?
I am currently looking into this code example from http://lucor.github.com/2011/10/drupal7-how-display-block-programmatically/
The view is in now in a block.
I have not yet figured out what I either one of the parameters are suposed to be set to.
$block = block_load($module, $delta); print render(_block_gAet_renderable_array( _block_render_blocks( array($block) )));