5x to 6x patch

sonnen - April 29, 2008 - 21:05
Project:Insert Block
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

The attached patch converts Insert Block 5.x-1.x-dev into a 6x-compatible version. It also adds (very basic) function documentation and moves the filtering step into hook_filter().

Assuming the code passes muster, would you consider releasing a 6x dev version?

Thanks,
Richard

AttachmentSize
insert_block_5x_to_6x.patch6.05 KB

#1

mlsamuelson - May 9, 2008 - 14:23

Thanks sonnen!

Sorry to keep you hanging. I've been sick and I'm rather swamped with prepping the markitup module for release, and won't be able to review this until that is done (hopefully soon).

Perhaps someone else might step in and review the patch? Everything you need to know about applying and reviewing patches.

mlsamuelson

#2

mlsamuelson - June 14, 2008 - 15:19

I wasn't able to apply the patch. Was it rolled outside of the Insert Block module directory?

Anyone else have success?

mlsamuelson

#3

Pasqualle - September 26, 2008 - 01:22

patched files

AttachmentSize
insert_block.info.txt 155 bytes
insert_block.module.txt 3.78 KB

#4

Pasqualle - September 26, 2008 - 01:25

there are some code style issues. should be fixed with the coder module

#5

Pasqualle - October 18, 2008 - 00:50

fixed code style

AttachmentSize
insert_block.module.txt 3.72 KB

#6

mlsamuelson - October 29, 2008 - 14:26
Status:needs review» needs work

Possibly someone can roll this as a patch that includes all affected files? http://drupal.org/patch/create

#7

Pasqualle - October 29, 2008 - 15:09
Status:needs work» needs review
AttachmentSize
D6_insert_block.patch 6.59 KB

#8

vacilando - November 3, 2008 - 14:09

Subscribing...

#9

mlsamuelson - December 18, 2008 - 23:21
Version:5.x-1.x-dev» 6.x-1.x-dev
Status:needs review» fixed

Awesome. Thanks sonnen and Pasqualle.

I've committed the changes in the patch as well as adding a few other improvements to the module: because the patch converts Insert Block from a pseudo filter that uses hook_nodeapi() to handle the tag replacements, to a filter module in the classical sense, I've turned caching off for input formats that use this module by adding the 'no cache' $op case in insert_block_filter(). This can lead to a performance hit, so I've explained that folks shouldn't add the Insert Block filter to their default input formats if they're not prepared for the impact.

Additionally, for the cache setting change to be felt in upgrade situations, I've added an install file to the module with a hook_update that clears the cache...

As soon as the packaging script has it ready, this dev version of Insert Block for Drupal 6 should show up soon. After it's been used for a while and any issues are ironed out, I'll roll a 1.0 release.

Thanks!

#10

Pasqualle - December 19, 2008 - 00:17

thanks. The dev snapshot is ready, but you should enable "Show snapshot release" on page http://drupal.org/node/44525/edit/releases to show it on the project page.

#11

mlsamuelson - December 19, 2008 - 14:41

It's there now.

#12

System Message - January 2, 2009 - 14:50
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.