Would it be possible to modify this module to connect with more than one flickr account & set of API tokens? In the use case I am looking at, there only needs to be two, not an infinitely extensible array of accounts. (so that pictures from 2 different accounts can be processed into the site - just need 2 accounts placed in blocks).
I am thinking about just making a copy of the module and renaming all the functions/saved variables as a quick workaround, but I have to figure this feature could help people generally. If I can figure out how to do it myself I will post a patch. Thanks!
Comments
Comment #1
BarisW commentedSure, I think this is a really good idea.
What I can do is the following:
- Replace the use of drupal variables (flickrapi_key) for Flickr authentication information and store this in a custom table.
- Add a column to set the type of credentials (site-wide, user).
By doing so, I could also add the possibility to allow each site-user to set its own credentials.
Comment #2
hongpong commentedThat's an excellent idea - I wonder if it would be possible to avoid creating another DB table though. (could use flickrapi_key0, flickrapi_key1, etc ). My usual webhost limits tables to 1000 and we just get so many of the darn things with Drupal. Or to be super fancy, there could be an admin option to store it as DB or as system vars, etc., depending on whether tons, or just a few are needed.