You are here

joomla_myblog.install in Joomla to Drupal 7

Same filename and directory in other branches
  1. 6 joomla_myblog.install
  2. 7.2 joomla_myblog.install

File

joomla_myblog.install
View source
<?php

/**
 * Implementation of hook_uninstall().
 */
function joomla_myblog_uninstall() {
  variable_del('joomla_myblog_vocabulary');
}

/**
 * Implementation of hook_schema().
 */
function joomla_myblog_schema() {
  $schema['joomla_myblog_categories'] = array(
    'description' => 'Stores the original Joomla MyBlog category ID and links to the {term_data} table',
    'fields' => array(
      'myblogcategoryid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => "The myblog category id from the Joomla database.",
      ),
      'tid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => "The {term_data}.tid.",
      ),
    ),
    'primary key' => array(
      'myblogcategoryid',
    ),
  );
  return $schema;
}

Functions

Namesort descending Description
joomla_myblog_schema Implementation of hook_schema().
joomla_myblog_uninstall Implementation of hook_uninstall().