You are here

function twilio_twiml_install in Twilio 7

Implements hook_install().

File

twilio_twiml/twilio_twiml.install, line 53
Install and uninstall functions for the twiml module.

Code

function twilio_twiml_install() {

  // Get our schema
  $schema = twilio_twiml_get_schema();

  // Create the tables
  foreach ($schema as $name => $table) {

    // Only create the DB tables if they don't already exist.
    if (!db_table_exists($name)) {
      db_create_table($name, $table);
    }
  }
}