I'm using Drupal 7 Entity Reference field in one of the content types. I want to populate the Auto complete field with pages created using my custom module.
Currently in the options, it is showing only the content types that are existing. How can I achieve this?
hook_menu()
in my module.