You are here

mediafront_user.install in MediaFront 6

Same filename and directory in other branches
  1. 6.2 plugins/mediafront_user/mediafront_user.install

File

plugins/mediafront_user/mediafront_user.install
View source
<?php

/**
 * Implementation of hook_schema().
 */
function mediafront_user_schema() {
  $schema['mediafront_user'] = array(
    'description' => t('The {mediafront_user} table stores user status data'),
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'verb' => array(
        'type' => 'varchar',
        'length' => 256,
        'not null' => TRUE,
        'default' => '',
      ),
      'noun' => array(
        'type' => 'varchar',
        'length' => 256,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'indexes' => array(
      'uid' => array(
        'uid',
      ),
    ),
  );
  return $schema;
}

/**
 * Implementation of hook_install().
 */
function mediafront_user_install() {
  drupal_install_schema('mediafront_user');
}

/**
 * Implementation of hook_uninstall().
 */
function mediafront_user_uninstall() {
  drupal_uninstall_schema('mediafront_user');
}

/**
 * Implementation of hook_enable().
 */
function mediafront_user_enable() {
}

/**
 * Implementation of hook_disable().
 */
function mediafront_user_disable() {
}

Functions

Namesort descending Description
mediafront_user_disable Implementation of hook_disable().
mediafront_user_enable Implementation of hook_enable().
mediafront_user_install Implementation of hook_install().
mediafront_user_schema Implementation of hook_schema().
mediafront_user_uninstall Implementation of hook_uninstall().