function update(&$obj)
 {
     parent::update($obj);
     $obj->set('content', $this->get('content'));
     $obj->set('block_type', 'C');
     $obj->set('c_type', $this->get('c_type'));
     $obj->set('visible', 1);
     $obj->set('isactive', 1);
     switch ($this->get('c_type')) {
         case 'H':
             $obj->set('name', _AD_LEGACY_LANG_CUSTOM_HTML);
             break;
         case 'P':
             $obj->set('name', _AD_LEGACY_LANG_CUSTOM_PHP);
             break;
         case 'S':
             $obj->set('name', _AD_LEGACY_LANG_CUSTOM_WITH_SMILIES);
             break;
         case 'T':
             $obj->set('name', _AD_LEGACY_LANG_CUSTOM_WITHOUT_SMILIES);
             break;
     }
 }
 function update(&$obj)
 {
     parent::update($obj);
     $obj->set('visible', true);
 }