You are here

feed_path_publisher.install in Feed Path Publisher 7

Same filename and directory in other branches
  1. 5 feed_path_publisher.install
  2. 6 feed_path_publisher.install

Install, update and uninstall functions for the feed_path_publisher module.

File

feed_path_publisher.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the feed_path_publisher module.
 *
 */

/**
 * Implements hook_schema().
 */
function feed_path_publisher_schema() {
  $schema['feed_path_publisher'] = array(
    'fields' => array(
      'fppid' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'disp-width' => '10',
      ),
      'title' => array(
        'type' => 'varchar',
        'length' => '50',
        'not null' => TRUE,
      ),
      'path_prefix' => array(
        'type' => 'varchar',
        'length' => '100',
        'not null' => TRUE,
      ),
      'feed' => array(
        'type' => 'varchar',
        'length' => '200',
        'not null' => TRUE,
      ),
      'weight' => array(
        'type' => 'int',
        'not null' => TRUE,
        'disp-width' => '11',
      ),
    ),
    'primary key' => array(
      'fppid',
    ),
    'unique keys' => array(
      'path_prefix' => array(
        'path_prefix',
        'feed',
      ),
    ),
    'indexes' => array(
      'listing' => array(
        'weight',
        'path_prefix',
        'title',
      ),
    ),
  );
  $schema['feed_path_publisher_roles'] = array(
    'fields' => array(
      'fpprid' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'disp-width' => '10',
      ),
      'fppid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'disp-width' => '10',
      ),
      'show_hide' => array(
        'type' => 'varchar',
        'length' => '50',
        'not null' => TRUE,
      ),
      'rids' => array(
        'type' => 'varchar',
        'length' => '100',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'fpprid',
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
feed_path_publisher_schema Implements hook_schema().