I am using drupal-7.0 on xampp 1.7.3 on Windows 7.
After installed the module, when I enter in [Configuration, Content authoring, Text formats, (some filter), configure], I view this message:

Notice: Undefined variable: itens in customfilter_filter_info() (line 43 of C:\bin\dev\xampp\htdocs\drupal7\sites\all\modules\customfilter\customfilter.module).

So, this is the patch:

...
/**
* Implements hook_filter_info().
*
* Return a list of filter to use in admin/config/content/formats/add
*
*/
function customfilter_filter_info() {
$filters = _customfilter_get_filters();

+ $itens = array();
foreach ($filters as $filter) {
$itens[$filter['type']] = array(
'title' => t($filter['name']),
...

CommentFileSizeAuthor
#7 customfilter-1034556.patch421 bytesstixes

Comments

yukare’s picture

Status: Patch (to be ported) » Fixed

Commited to git, thanks and sorry about the long delay.

Status: Fixed » Closed (fixed)

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

velimir_alic’s picture

Status: Closed (fixed) » Needs review

Reopened: needs to be tested and ported to a roll-up release.

velimir_alic’s picture

Status: Needs review » Patch (to be ported)

Sorry, wrong status - I suppose the patch has been reviewed, but needs to be rolled-up to another branch/tag.

PaulBunkey’s picture

Wait, isn't this is a typo ? Did you mean that it must be "itens" and not "items" in lines 28 and 42 ?
Because before I got here I just fixed it to be "items". Should I switch it back to "itens" and declare it like that:
$itens = array(); ?

tmsimont’s picture

It looks like in 7.x-1.0 the variable is named "itens" and it's not declared before it's used. I'm getting the same error (notice):

"Notice: Undefined variable: itens in customfilter_filter_info() (line 42 of C:\wamp\www\gca\sites\all\modules\customfilter\customfilter.module)."

stixes’s picture

StatusFileSize
new421 bytes

Created a patch against 1.0 with the fix. This will help the drush make people out there ;)

Stevel’s picture

Status: Patch (to be ported) » Needs work

There is trailing whitespace in the first added line.

dougvann’s picture

FYI:
I tested this patch and it did remove the error.
THNX!

yukare’s picture

Issue summary: View changes
Status: Needs work » Fixed

This is fixed on git for a long time, see http://drupalcode.org/project/customfilter.git/blobdiff/252873a633208c6f.... I will make a new stable release soon.

Status: Fixed » Closed (fixed)

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

nicholasthompson’s picture

I will make a new stable release soon.

Any news on a release?

bzbzh’s picture

A released would be cool, but in the meantime why not fix the typo too? (itens vs items)

nickonom’s picture

Any news on this one?