Closed (fixed)
Project:
Flickr
Version:
7.x-1.x-dev
Component:
flickrfield
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
29 Jan 2015 at 15:53 UTC
Updated:
16 Mar 2015 at 00:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lolandese commentedHi,
Please explain or provide an example or use case.
Assign to yourself if you intend to write a patch.
Patches will be reviewed promptly and will be committed with attribution upon reaching RTBC status.
Thanks.
Comment #2
joewhitsittComment #3
joewhitsittSorry, didn't see your comment before I posted the patch.
Personally, we are using the field but simplifying it for our content editors by setting type and nsid access to false, altering the title/description for id. Ideally I am looking forward to this feature: https://www.drupal.org/node/1170010, but I think it would be nice to have going forward regardless.
Comment #4
lolandese commentedNice.
To test and as an example for others that want to make use of this, could you provide the hook_flickrfield_process_alter() function that you defined in your custom module as well? Write in CAPS the custom bits that one needs to alter, like MYMODULE_flickrfield_process_alter().
After commit and a new stable release I will add your provided example to the module's Developer documentation at https://www.drupal.org/node/2289797.
Thanks.
Comment #5
joewhitsittAn example of using the proposed drupal_alter():
Comment #7
lolandese commentedAbove example code has been put in a custom module. See attached zip file to be extracted in the module folder 'flickr'.
All works as expected. See attached screenshots of the modified field before and after enabling the custom module.
The provided example, although intended only to test the provided patch, can be used by those that are looking to simplify the Flickr Field. It has to be said that:
An excellent use case example of the function drupal_alter().
Thanks for contributing.
BEFORE:
AFTER:
Comment #8
lolandese commentedComment #9
lolandese commentedAdded some documentation on this at https://www.drupal.org/node/2289797#field.
Feel free to correct grammar or improve readability over there.
Thanks.
Comment #11
joewhitsitt@lolandese, just updated to 7.x-1.6 and saw that this drupal_alter() wasn't in there anymore. Is this a mistake or do you have a reason for taking it out?
Comment #12
lolandese commentedUse the dev for now. It should be pretty safe. That's where this is committed. 7.x-1.6 is from 2014-Jun-26. The commit was made February 20, 2015. A new stable version is upcoming, probably in a few weeks. See #2421343: What 'active' issues go in the next stable release?.
You can also patch the 7.x-1.6 version.
Comment #13
joewhitsittOh geez. Sorry, I didn't read the dates/version number correclty.