You are here

mediafront.install in MediaFront 7.2

Same filename and directory in other branches
  1. 6.2 mediafront.install
  2. 6 mediafront.install
  3. 7 mediafront.install

File

mediafront.install
View source
<?php

/**
 * Implements hook_schema().
 */
function mediafront_schema() {
  $schema['mediafront_preset'] = array(
    'description' => 'The preset table for MediaFront.',
    'fields' => array(
      'pid' => array(
        'description' => 'The primary identifier for a MediaFront preset.',
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'name' => array(
        'description' => 'The name of this preset.',
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'default' => '',
      ),
      'description' => array(
        'description' => 'A brief description of this preset.',
        'type' => 'text',
        'size' => 'medium',
        'translatable' => TRUE,
      ),
      'player' => array(
        'type' => 'varchar',
        'length' => 64,
        'not null' => TRUE,
        'default' => '',
      ),
      'connect' => array(
        'type' => 'text',
        'size' => 'medium',
        'serialize' => TRUE,
        'description' => 'Serialized player connection settings.',
      ),
      'settings' => array(
        'type' => 'text',
        'size' => 'medium',
        'serialize' => TRUE,
        'description' => 'Serialized player settings that do not warrant a dedicated column.',
      ),
    ),
    'unique keys' => array(
      'name' => array(
        'name',
      ),
    ),
    'primary key' => array(
      'pid',
    ),
  );
  return $schema;
}

/**
 * Legacy update...
 */
function mediafront_update_7001() {
  $update = array();
  return $update;
}

/**
 * Legacy update...
 */
function mediafront_update_7002() {
  $update = array();
  return $update;
}

/**
 * Legacy update...
 */
function mediafront_update_7003() {
  $update = array();
  return $update;
}

/**
 * Legacy update...
 */
function mediafront_update_7004() {
  $update = array();
  return $update;
}

/**
 * Legacy update...
 */
function mediafront_update_7005() {
  $update = array();
  return $update;
}

/**
 * Legacy update...
 */
function mediafront_update_7006() {
  $update = array();
  return $update;
}

/**
 * Legacy update...
 */
function mediafront_update_7007() {
  $update = array();
  return $update;
}

Functions

Namesort descending Description
mediafront_schema Implements hook_schema().
mediafront_update_7001 Legacy update...
mediafront_update_7002 Legacy update...
mediafront_update_7003 Legacy update...
mediafront_update_7004 Legacy update...
mediafront_update_7005 Legacy update...
mediafront_update_7006 Legacy update...
mediafront_update_7007 Legacy update...