I created a drupal custom module for my website, the module functionality is it display list of students who have registered in my site. Now I want to update my custom module with search functionality, the search function should like google search function.
My custom module look like following structure
Now i want to implement the search function in my custom module when i search using the fields of the table like student name,gender,author name,status.how to do this?
Thanks in Advance.
You have few options:
hook_views_data() to hook your custom tables with Views.
Use Data module as it features automatic integration with Views.
Reorder your setup to use Drupal's node type/user profile/entity, which has Views support out of the box.
Doing it really manually will be a waste of time, unless you need some very specific functionality that can be hardly achieved by using Views for it.
Views will also provide you with caching, paging and it will be easier to maintain it in the future.