pretty simple. Here's the code

function mailchimp_block($op = 'list', $delta = 0, $edit = array()) {                                                        
   switch($op) {                                                                                                             
      case 'list':                                                                                                           
         $blocks[0]['info'] = t('MailChimp Subscribe');                                                                      
         return $blocks;                                                                                                     
      case 'view':                                                                                                           
         $block['subject'] = t('Newsletter');                                                                                
         $block['content'] = drupal_get_form('mailchimp_subscribe_form');                                                    
         return $block;                                                                                                      
   }                                                                                                                         
}                                                                                                                            

I just recylcle your signup form. Seems to work. This will allow users to add the registration form onto their sidebars or footers should they chose.

Comments

ronan’s picture

Another good addition, I'll add it when I get a chance. If you can submit a patch (http://drupal.org/patch/create) that'd help too.

Thanks
Ronan

levelos’s picture

Status: Active » Closed (duplicate)

of #411820