You are here

function media_wysiwyg_schema in D7 Media 7.2

Same name and namespace in other branches
  1. 7.4 modules/media_wysiwyg/media_wysiwyg.install \media_wysiwyg_schema()
  2. 7.3 modules/media_wysiwyg/media_wysiwyg.install \media_wysiwyg_schema()

Implements hook_schema().

1 call to media_wysiwyg_schema()
media_wysiwyg_update_7205 in modules/media_wysiwyg/media_wysiwyg.install
Install {media_restrict_wysiwyg} and {media_view_mode_wysiwyg}.

File

modules/media_wysiwyg/media_wysiwyg.install, line 11
Install, update and uninstall functions for the Media WYSIWYG module.

Code

function media_wysiwyg_schema() {
  $schema['media_restrict_wysiwyg'] = array(
    'description' => 'Stores media displays restricted in wysiwyg.',
    'fields' => array(
      'type' => array(
        'description' => 'The machine name of the file type.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'display' => array(
        'description' => 'The restricted display.',
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'default' => '',
      ),
    ),
  );
  $schema['media_view_mode_wysiwyg'] = array(
    'description' => 'Maps WYSIWYG view modes to file types.',
    'fields' => array(
      'type' => array(
        'description' => 'The machine name of the file type.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
      'view_mode' => array(
        'description' => 'WYSIWYG view mode mapped to this file type.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
  );
  return $schema;
}