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.
This patch adds a functionality (which can be disabled) that will make the quote link add the highlighted text to the comment and have it quoted.
Comment | File | Size | Author |
---|---|---|---|
#3 | quote-highlighted-text-2.patch | 7.77 KB | attila.fekete |
#2 | quote-highlighted-text-1.patch | 6.59 KB | attila.fekete |
quote-highlighted-text-0.patch | 6.34 KB | attila.fekete | |
Comments
Comment #1
kalman.hosszu CreditAttribution: kalman.hosszu commentedYou should delete the created variable during the uninstall process.
Please use quoteHiglighted or something similar instead of "higlighted"
The attach function gets the settings variable too.
You should use the settings param instead of Drupal.settings. In this case you have to modify the current settings variable's name.
Please use the new settings variable.
I think this function should inside the behavior's class.
Please correct the function comment sesction.
This function should inside the behavior too.
After these modifications I will test the functionality. Thanks for the work @attila.fekete!
Comment #2
attila.fekete CreditAttribution: attila.fekete commentedHi Kalman, I fixed the issues you mentioned above, thanks for the review!
(Notice for the first one: it seems to me that we don't have to delete the variable, since all variables used in this module are merged into one variable ('quote') within the _quote_variable_get() function).
Comment #3
attila.fekete CreditAttribution: attila.fekete commentedUpdated patch: highlighting feature now works with the 'Quote link' views field as well.
Comment #4
c470ip CreditAttribution: c470ip commentedTried patch-0 and patch-2, none of them worked. The comments always get quoted completely, while nodes do not get quoted at all. Only [quote=*author*][/quote] tags are inserted and the following error occurs:
Notice: Undefined index: ru in the function _quote_get_quoted_data() (line 356 of file /home/***/www/sites/all/modules/quote/quote.module).
Comment #5
ivnish CreditAttribution: ivnish commentedFixed in the new 2.x branch
Comment #6
ivnish CreditAttribution: ivnish commented