Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The error for "The getID3 PHP library could not be found in sites/all/modules/getid3/getid3." has a link for getID3 going to /admin/settings/@getid3. The t() function is being called incorrectly.
At line 129,
form_set_error($form_element['#parents'][0], t('The <a href="@getID3" target="_blank">getID3 PHP library</a> could not be found in %path.', array('@url' => 'http://www.getid3.org', '%path' => $path)));
could become
form_set_error($form_element['#parents'][0], t('The <a href="@url" target="_blank">getID3 PHP library</a> could not be found in %path.', array('@url' => 'http://www.getid3.org', '%path' => $path)));
but even better would be
form_set_error($form_element['#parents'][0], t('The !getID3 could not be found in %path.', array('!getID3' => l(t('getID3 PHP library'), 'http://www.getid3.org'), '%path' => $path)));
Comment | File | Size | Author |
---|---|---|---|
#1 | getid3.notfoundlink2.patch | 896 bytes | aaron |
getid3.notfoundlink.patch | 867 bytes | aaron |
Comments
Comment #1
aaron CreditAttribution: aaron commentedif you still want the _blank target, then just add that to the link attributes. forgot about that, sorry... here it is in this second patch
Comment #2
RobLoachThanks! Don't really need the _blank target, but ah well...
http://drupal.org/cvs?commit=103310
Aaron, would you like CVS access on here to help maintain the project? You probably know the best ways to use GetID3 through your involvement with Embedded Media Field....
Comment #3
aaron CreditAttribution: aaron commentedSure thing, Rob! Go ahead and add me in. I've been investigating the module anyway, as a path to add better support for local files to Embedded Media Field.
Comment #4
RobLoachDone! Feel free to hack at it as much as you want.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.