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

Contents of /contributions/modules/rolecontact/rolecontact.install

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


Revision 1.1 - (show annotations) (download) (as text)
Mon Nov 12 10:23:38 2007 UTC (2 years ago) by dlane
Branch: MAIN
CVS Tags: DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5
File MIME type: text/x-php
Initial commit of rolecontact module.  With rolecontact, members of an admin-specified role are listed on a 'staff' page, with links to a themed subset of their profile data, ordered based on per-user weights.  Each user also has a themed profile page, offering a (potentially different) subset of their profile details along with a link to the user's contact form: a contact form category is created for each user allowing any site visitor to send them email without revealing the user's email address.
1 <?php
2
3 function rolecontact_install() {
4 db_query("CREATE TABLE {rolecontact} (
5 uid INT NOT NULL,
6 cid INT NOT NULL,
7 weight INT NOT NULL DEFAULT 0,
8 PRIMARY KEY (uid),
9 UNIQUE (cid))");
10 }

  ViewVC Help
Powered by ViewVC 1.1.2