drupal_set_message(t('Custom block type %label has been updated.',array('%label'=>$block_type->label())));
watchdog('custom_block','Custom block type %label has been updated.',array('%label'=>$block_type->label()),WATCHDOG_NOTICE,l(t('Edit'),$uri['path'].'/edit'));
watchdog('custom_block','Custom block type %label has been updated.',array('%label'=>$block_type->label()),WATCHDOG_NOTICE,$edit_link);
}
else{
drupal_set_message(t('Custom block type %label has been added.',array('%label'=>$block_type->label())));
watchdog('custom_block','Custom block type %label has been added.',array('%label'=>$block_type->label()),WATCHDOG_NOTICE,l(t('Edit'),$uri['path'].'/edit'));
watchdog('custom_block','Custom block type %label has been added.',array('%label'=>$block_type->label()),WATCHDOG_NOTICE,$edit_link);