By amiable_indian on
Hi :
I have been banging my head around this for a while without any luck in getting this to work :
- I created two custom nodes by using CCK, "person" & "movie" which are working fine. `movie` node has taxonomy which matches to that of `person` title field
- Next, I wanted that whenever `movie` node is called it automatically shows photos of all `person` which are mentioned in its taxonomy
- Initially, I tried to achieve this using "views" module. Though views is excellent in joining tables and but didn't provided the results I was trying to get.
- So, I STFW and bumped into Drupal Book - Hook_Load Method. From what i understood, it seemed if i created a custom module and used `movie_load` or `movie_view` function then it would have done the trick
- Then, I created module `foobar` and created `foobar.info` and `foobar.module` files. After making some additions to `foobar.info` page i was to able to see it in the Drupal's module administration page and activate it
- Then I added function movie_load ( based on Drupal API specifications ) in the `foobar.module` file
- It seems as if this function is never called. I tried many variations but it isn't being called...
I am stuck at this stage of development, and would appreciate if someone could guide me in using hook method. ( and if hook_load is a good way to achieve what i am trying to do )
Thanks in Advance,
-Amiable