Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function my_module_block_info() {
- $blocks = array();
- $blocks['my_module_config'] = array(
- 'info' => t('My Module'),
- );
- return $blocks;
- }
- /**
- * Implements hook_block_view().
- */
- function my_module_block_view($delta = '') {
- $block = array();
- switch ($delta) {
- case 'my_module_config':
- $my_module_form = drupal_get_form('my_module_form');
- $my_module_form = drupal_render($my_module_form);
- $block['subject'] = '';
- $block['content'] = $my_module_form;
- break;
- }
- return $block;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement