I needed a way to create embed the feed into content, so I wrote up the following filter.

It accepts all of the 4 arguments from comma seperated list in the tag [twitter-pull:ARGUMENTS].

From lessions learnt in other modules, I'm using double quote support to escape the title allowing titles like "My account, other title stuff".

Also, rather than returning an error message, I check for the existence of the theme instead, and I use the default (NULL) if not found.

[twitter-pull:URL]
[twitter-pull:URL,TITLE,NUM,THEMEKEY]

These insert Twitter feed content based on the URL, (e.g. @username or #hashtag) and optional title (TITLE), feed number (NUM), and theme key (THEMEKEY) properties.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Alan D.’s picture

As an aside, is there an easy way to create a listing based on a singular list from the user? So rather than @user , I'm looking for @user/list-of-interest

And any reason for the number limit? 20 doesn't sound like much. (I do not know what the Twitter API limits are)

Cheers

irakli’s picture

@Alan D.

Lists are now supported.

20 is the limit of the API itself.

Thank you for the patch.

moshe weitzman’s picture

Input filter seems handy an in the spirit of this module

irakli’s picture

Priority: Normal » Major

Bumping up the priority. Would like to get to this as soon as I can.

Patch needs to be re-rolled and we need a similar patch for D7, though :(

Any help would be highly appreciated.

Thanks

cookiesunshinex’s picture

I tried to apply this patch and received the following:

patching file twitter_pull.module
Hunk #1 FAILED at 39.
Hunk #2 FAILED at 73.
Hunk #3 succeeded at 210 with fuzz 1 (offset 84 lines).
Hunk #4 FAILED at 241.
3 out of 4 hunks FAILED -- saving rejects to file twitter_pull.module.rej

Ken Hawkins’s picture

Is there still interest in this? If a new patch was submitted would it be applied?