I'm using Entity Translation for node translations.
I would like to modify access to edit form for this translation language based on roles and node properties. I've a field in the node entity with a select list of languages, translator should only access translate nodes in languages that are checked in that list.
Which is the best option to modify the access to the node/{NID}/edit/{LANGUAGE} ?
hook_menu_alter
?hook_node_access()
: this hook is called but how can I get the language? ($_GET
could be problematic I think).- Extending the
EntityTranslation
class? - Other?