/[drupal]/contributions/modules/facebook_status/facebook_status_tags.install
ViewVC logotype

Contents of /contributions/modules/facebook_status/facebook_status_tags.install

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


Revision 1.1 - (show annotations) (download) (as text)
Sun May 17 04:02:11 2009 UTC (6 months, 1 week ago) by icecreamyou
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--2
File MIME type: text/x-php
#437522 form wasn't cached with caching turned off on site (thanks katbailey)
Changed help text for some settings
Moved maximum status length setting from Advanced to General settings page
Added an open API for users with the 'view all statuses' permission in XML, JSON, and REST
Documented open API
Added submodule that allows referencing users with @username and taxonomy terms (including creation of new ones) with #termname.
Documented submodule
Added Views integration for submodule
1 <?php
2 // $Id$
3
4 /**
5 * @file
6 * Converts @usernames to themed usernames and #hashtags to themed taxonomy terms on Facebook-style Statuses.
7 */
8
9 /**
10 * Implementation of hook_schema().
11 */
12 function facebook_status_tags_schema() {
13 $schema = array();
14 $schema['facebook_status_tags'] = array(
15 'description' => 'Stores term-to-status relationships.',
16 'fields' => array(
17 'sid' => array(
18 'type' => 'int',
19 'unsigned' => TRUE,
20 'not null' => TRUE,
21 'default' => 0,
22 'description' => 'Status ID',
23 ),
24 'rid' => array(
25 'type' => 'int',
26 'not null' => TRUE,
27 'unsigned' => TRUE,
28 'default' => 0,
29 'description' => 'Reference ID (Term ID or User ID)',
30 ),
31 'type' => array(
32 'type' => 'varchar',
33 'length' => 40,
34 'not null' => TRUE,
35 'default' => '',
36 'description' => 'Reference type',
37 ),
38 ),
39 'indexes' => array(
40 'sid' => array('sid'),
41 'rid' => array('rid'),
42 ),
43 'primary key' => array('sid', 'rid'),
44 );
45 return $schema;
46 }
47
48 /**
49 * Implementation of hook_install().
50 */
51 function facebook_status_tags_install() {
52 drupal_install_schema('facebook_status_tags');
53 }
54
55 /**
56 * Implementation of hook_uninstall().
57 */
58 function facebook_status_tags_uninstall() {
59 drupal_uninstall_schema('facebook_status_tags');
60 variable_del('facebook_status_tags_vid');
61 variable_del('facebook_status_tags_url');
62 }

  ViewVC Help
Powered by ViewVC 1.1.2