You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
baisong edited this page Mar 7, 2013
·
4 revisions
Sometimes, you might want your custom App to contain a single instance of a block, pre-created when the user enables your app.
Note: blocks != boxes
A box is a kind of "block factory", that allows a site to create many instances of a single type. In contrast, a each block you add following these instructions will provide a single, pre-created instance in each vsite's available widgets layout page in CP > Build > Layout.
1. Provide a hook_block_info() in your .module file