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

Contents of /contributions/modules/profile_blog_info/profile_blog_info.install

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


Revision 1.2 - (show annotations) (download) (as text)
Tue Dec 16 01:25:26 2008 UTC (11 months, 1 week ago) by mfer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -2 lines
File MIME type: text/x-php
#309589: Fixed issue where RSS field title could not be changed.
#318080: Fixed schema. Removed unneeded default => ''
1 <?php
2 // $Id: profile_blog_info.install,v 1.1 2008/08/04 10:02:52 mfer Exp $
3
4 /**
5 * @file
6 * Preform the install and unistall tasks.
7 */
8
9 /**
10 * Implementation of hook_install().
11 */
12 function profile_blog_info_install() {
13 // Create tables.
14 drupal_install_schema('profile_blog_info');
15 }
16
17 /**
18 * Implementation of hook_uninstall().
19 */
20 function profile_blog_info_uninstall() {
21 drupal_uninstall_schema('profile_blog_info');
22
23 variable_del('profile_blog_info_profile_category');
24 variable_del('profile_blog_info_title');
25 variable_del('profile_blog_info_rss');
26 variable_del('profile_blog_info_explanation');
27 variable_del('profile_blog_info_required');
28 variable_del('profile_blog_info_register');
29 variable_del('profile_blog_info_refresh');
30 variable_del('profile_blog_info_category');
31 variable_del('profile_blog_info_fieldset');
32 }
33
34 /**
35 * Implementation of hook_schema().
36 */
37 function profile_blog_info_schema() {
38 $schema['profile_blog_info'] = array(
39 'description' => t('Stores profile blog info information.'),
40 'fields' => array(
41 'fid' => array(
42 'type' => 'int',
43 'unsigned' => TRUE,
44 'not null' => TRUE,
45 'default' => 0,
46 'description' => t('Unique feed ID.'),
47 ),
48 'uid' => array(
49 'type' => 'int',
50 'unsigned' => TRUE,
51 'not null' => TRUE,
52 'default' => 0,
53 'description' => t('The {users}.uid of the profile user.'),
54 ),
55 'blog_url' => array(
56 'type' => 'text',
57 'description' => t("The url of the blog."),
58 ),
59 ),
60 'unique keys' => array(
61 'fid' => array('fid', 'uid'),
62 ),
63 );
64
65 return $schema;
66 }

  ViewVC Help
Powered by ViewVC 1.1.2