function twilio_twiml_get_schema in Twilio 7
Custom function to return our schema.
2 calls to twilio_twiml_get_schema()
- twilio_twiml_install in twilio_twiml/
twilio_twiml.install - Implements hook_install().
- twilio_twiml_uninstall in twilio_twiml/
twilio_twiml.install - Implements hook_uninstall().
File
- twilio_twiml/
twilio_twiml.install, line 15 - Install and uninstall functions for the twiml module.
Code
function twilio_twiml_get_schema() {
$schema['twilio_twiml'] = array(
'fields' => array(
'twiml_id' => array(
'description' => 'The machine-readable name of this TwiML.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
),
'name' => array(
'description' => 'The name of this TwiML.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'description' => array(
'description' => 'The description of this TwiML.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'data' => array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'description' => 'The XML twiml config data.',
),
),
'primary key' => array(
'twiml_id',
),
);
return $schema;
}