Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to create the table using module?



How to create the table using module?..

Answer / Shailly

To create a table using a custom module in Drupal, follow these steps:

1. Create a custom module and enable it.
2. Implement hook_install() or hook_update_N() to install/update the database schema.
3. Define the database schema using a YAML file (e.g., .install files) or database API functions.
4. Query the database and create the necessary tables, fields, and relationships.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Drupal Interview Questions

Mention what are the key features of Drupal?

1 Answers  


Who invented drupal?

1 Answers  


What are disadvantages of Drupal?

1 Answers  


What is comment in drupal?

1 Answers  


For better search what we can do in drupal 7?

1 Answers  


What is the use of the field set the width of each sidebar in the layout and general settings?

1 Answers  


What is taxonomy in drupal?

1 Answers  


How are the contents categorized and managed in a typical scenario?

1 Answers  


Why 'search' function in drupal is better than other cms?

1 Answers  


What are the translations available in Drupal?

1 Answers  


How do I create a view in drupal 8?

1 Answers  


Explain drupal user, permission, role in drupal?

1 Answers  


Categories