Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
filter.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
13 Aug 2009 at 14:28 UTC
Updated:
24 Apr 2011 at 12:19 UTC
Jump to comment: Most recent file
Remove hook_filter_tips in favor of a 'tips callback' provided by a info hooks for filters.
Related issues:
#546336: hook_filter_info(): Remove $op from hook_filter()
#546350: Remove hardcoded numeric deltas from hook_filter_info()
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | remove-hook_filter_tips.patch | 23.6 KB | dropcube |
Comments
Comment #1
dropcube commentedI am marking this critical, as this is an API change we should get in before the code freeze.
Comment #2
dropcube commentedThis patch removes
hook_filter_tipsimplementations from core and includes the filter tips in callback functions, declared inhook_filter_info()with"tips callback"key.Comment #3
moshe weitzman commentedPlease justify your patch and your priority. "becuase we are near freeze" is not a justifcation.
Comment #4
dropcube commented@moshe: This is a follow up of #546336: hook_filter_info(): Remove $op from hook_filter() (already in core), which introduces a registry-style info hook for filters. With
'tips callback', we do not needhook_filter_tipsany more. So, as this is an API change, I think it's critical to get some of this in before the freeze.Comment #5
dropcube commentedComment #6
dries commentedThis is a required follow-up of the filter refactoring. Committed!
Marking 'needs work' because we need to update the upgrade instructions in the handbook. Mark 'fixed' after the documentation is in place.
Thanks dropcube.
Comment #7
moshe weitzman commentedIn the future, please use render() arrays arrays instead of strings. This delays theming until after the page is fully built. As written here, the 'Character Description' table and all the rest is baked in.
Comment #8
webchickTagging.
Comment #9
jhodgdonThe module upgrade guide for this definitely needs some work, but I think it is more appropriately discussed on #546336: hook_filter_info(): Remove $op from hook_filter(), because changes to doc from that update need to be made before this one can even be addressed. So I'll add a comment there.
Comment #10
dropcube commentedAdded upgrade instructions: hook_filter() replaced by hook_filter_info(), and removed hook_filter_tips()