You are here

function textimage_schema_alter in Textimage 7.3

Implements hook_schema_alter().

File

./textimage.module, line 250
Textimage - Provides text to image manipulations.

Code

function textimage_schema_alter(&$schema) {

  // Alter the schema adding fields required by Textimage.
  require_once 'textimage.install';
  $table_fields = _textimage_define_table_fields();
  foreach ($table_fields as $table_name => $fields) {
    foreach ($fields as $field_name => $field) {
      $schema[$table_name]['fields'][$field_name] = $field;
    }
  }
}