/[drupal]/contributions/modules/twistage/twistage.install
ViewVC logotype

Contents of /contributions/modules/twistage/twistage.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Thu Sep 11 22:24:08 2008 UTC (14 months, 2 weeks ago) by xmattus
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/x-php
Initial commit of Twistage Integration module. This module allows Drupal to interact with the API for the Twistage video hosting service.
1 <?php
2
3 /**
4 * Implementation of hook_install
5 */
6 function twistage_install() {
7 db_query("CREATE TABLE IF NOT EXISTS twistage_videos (vid varchar(255), pid int(10), site_key varchar(255), title varchar(255), description text, tags text, status varchar(255), availability varchar(255), created int(11), publisher varchar(255), play_order int(10) default 0, syndicated int(10) default 0)");
8 drupal_set_message('Created table <i>twistage_videos</i>.');
9 db_query("CREATE TABLE twistage_profiles (pid int(10), name varchar(255), description varchar(255), type varchar(255), path varchar(255), company varchar(255), site_name varchar(255), site_key varchar(255), site_username varchar(255), width int(10), height int(10), show_table int(4), autoplay int(4), page_header text, page_header_format int(4), page_footer text, page_footer_format int(4), preroll_company varchar(255), preroll_site_name varchar(255), preroll_site_key varchar(255), preroll_url text, username varchar(255), password varchar(255), publish_types text, primary key(pid))");
10 drupal_set_message('Created table <i>twistage_profiles</i>.');
11 }

  ViewVC Help
Powered by ViewVC 1.1.2