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.
https://api.drupal.org/api/drupal/core%21modules%21filter%21tests%21filt...
The documentation for filter_test_filter_format_insert() should state:
Implements hook_ENTITY_TYPE_insert().
not
Implements hook_filter_format_insert().
The same is true of the filter_test_filter_format_update().
Comment | File | Size | Author |
---|---|---|---|
#26 | filter-test-correct-hook-doc-2613146-26.patch | 769 bytes | zuhair_ak |
#23 | filter-test-correct-hook-doc-2613146-23.patch | 769 bytes | msankhala |
#16 | 2613146-16.patch | 945 bytes | rasikap |
#3 | filter_test_module_fix_hooks_comments-2613146-3.patch | 737 bytes | LOBsTerr |
Comments
Comment #2
LOBsTerr CreditAttribution: LOBsTerr as a volunteer commentedComment #3
LOBsTerr CreditAttribution: LOBsTerr as a volunteer commentedComment #4
LOBsTerr CreditAttribution: LOBsTerr as a volunteer commentedComment #5
Chi CreditAttribution: Chi commentedComment #6
cilefen CreditAttribution: cilefen commentedComment #7
cilefen CreditAttribution: cilefen commentedComment #8
Chi CreditAttribution: Chi commentedThere are few other functions with exact same problem. For example block_content_test_block_content_presave(). Shall we create a separate issue for each case?
Comment #9
cilefen CreditAttribution: cilefen commented@Chi, yes, but do it by module. So, one issue for the block_content module.
Comment #10
LOBsTerr CreditAttribution: LOBsTerr as a volunteer commented@Chi you can assign the new task to me. Thanks
Comment #12
LOBsTerr CreditAttribution: LOBsTerr as a volunteer commentedComment #14
munizjor CreditAttribution: munizjor commentedChanges look good and its 8.1.x test passed.
Comment #15
rasikap CreditAttribution: rasikap at Blisstering Solutions commentedComment #16
rasikap CreditAttribution: rasikap at Blisstering Solutions commentedAdded patch for 8.2.x
Comment #22
msankhala CreditAttribution: msankhala at Srijan | A Material+ Company commentedThe patch #3 does not apply anymore and the patch #16 is making an incorrect change
Implements hook_filter_format_disable() => Implements hook_disable().
correct hook ishook_filter_format_disable().
Comment #23
msankhala CreditAttribution: msankhala at Srijan | A Material+ Company commentedHere is the new patch.
Comment #24
longwaveComment #26
zuhair_akSeems like a random test failure, have been seeing this in some other issues as well..running testbots again
Comment #27
longwaveComment #29
longwaveComment #30
catchCommitted e2432d9 and pushed to 8.7.x. Thanks!