I have a use case where I am needing to omit indexing of files attached to nodes owned by a specific user that is a bulk upload bot that is mirroring the entire Project Gutenberg library.

The 7.x patch (the one I'm actually interested in personally) is in two pieces because I refactored the indexability checks across the board and it can go in independent of whether or not the hook is accepted.

Comments

bdragon created an issue. See original summary.

bdragon’s picture

bdragon’s picture

Note: I'm not married to the idea of passing the field name through, I can take that back out if it doesn't make sense. Plus, I'm not sure if I got the field name right in all circumstances, I'm only *using* the field collection submodule and I guessed on the other ones.

plach’s picture

Status: Active » Needs review

Looks great to me

bdragon’s picture

Status: Needs review » Needs work

I screwed up a few things when converting the site customization code this was based on to a hook. Still tweaking things a bit.

bdragon’s picture

Status: Needs work » Needs review
StatusFileSize
new9.35 KB
new3.31 KB

Super silly, I was reading the documentation for invoke but calling alter.

  • izus committed 6544828 on 7.x-1.x authored by bdragon
    Issue #2757973 by bdragon, plach, izus: Refactor indexability checks to...

  • izus committed 1e91f96 on 7.x-1.x authored by bdragon
    Issue #2757973 by bdragon, izus: Add hook to alter indexability.
    

  • izus committed 34fe6f5 on 8.x-1.x authored by bdragon
    Issue #2757973 by bdragon, izus: Add a hook for customizing indexability...
izus’s picture

Assigned: bdragon » Unassigned
Status: Needs review » Fixed

Hi,
Thanks for all your contribution.
This is now merged.

izus’s picture

just to add that this is now part of today's 7.x-1.10 release :)

  • izus committed b5400f2 on 8.x-1.x
    Issue #2757973 by izus: moduleHandler()->invokeAll() should have an...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.