I wanted to add a relationship to data in a View of an existing module, so I've hacked the code (the function
modulename_views_data) and it works.
Now I want to create a new module to do this extension, leaving clean the original one. I guess I should use the
function views_data_alter(&$data) but I don't understand how to bind it to the other module.