Quantcast
Viewing all articles
Browse latest Browse all 291829

Get rid of node_hook and node_invoke

Follow-up for #111715: Convert node/content types into configuration

Problem/Motivation

Currently there's a hooks:
hook_load, hook_prepare, hook_view, hook_form, hook_validate, hook_insert, hook_update, hook_delete
That have similar hooks with node prefix - hook_node_insert

Also there's hook_ranking but depends on node...

Proposed resolution

Stop support node_hook() and remove usage of node_invoke()
Modules should move their implementations into corresponding hook_node_*() space and use hook_form_alter*() to modify node form

Remaining tasks

  1. Drop usage
  2. Change notice

Viewing all articles
Browse latest Browse all 291829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>