I wanted to insert a block within the CCK input field in drupal 7. I have created a block which would display all the custom content types and the nodes created with those content type in tree structure and categories,sub categories from Magento. The tree value is dynamically populated every time.
I want to display this tree in the cck input form to enable the user to make the selection. I was trying to do this using hook_theme in hook_form_FORM_ID_alter. I used module_invoke to insert the block module within the module template file. but its look like I cant insert the block within the template.
Could anyone tell me why I module_invoke is not working and suggest me a way to insert this tree in the CCK input field. I want to get the value selected in this field and store for use in some other module.