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

Diff of /contributions/modules/path_access/path_access.install

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

revision 1.1.4.1, Mon Mar 26 16:44:56 2007 UTC revision 1.1.4.2, Mon Aug 27 14:38:39 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id $  /* $Id:$ */
3    
4  function path_access_install() {  function path_access_install() {
5    drupal_set_message('Installing Path Access');    drupal_set_message('Installing Path Access');
6    switch ($GLOBALS['db_type']) {    switch ($GLOBALS['db_type']) {
7        case 'mysqli':        case 'mysqli':
8        case 'mysql':        case 'mysql':
9          db_query("CREATE TABLE `path_access` (          db_query("CREATE TABLE IF NOT EXISTS {path_access} (
10                    `pid` int(10) NOT NULL default '0',                    `pid` int(10) NOT NULL default '0',
11                    `rid` int(10) NOT NULL default '0',                    `rid` int(10) NOT NULL default '0',
12                    `pages` text,                    `pages` text,
# Line 30  function path_access_install() { Line 30  function path_access_install() {
30      drupal_set_message(t('The installation of Path Access module was unsuccessful.'), 'error');      drupal_set_message(t('The installation of Path Access module was unsuccessful.'), 'error');
31    }    }
32  }  }
   

Legend:
Removed from v.1.1.4.1  
changed lines
  Added in v.1.1.4.2

  ViewVC Help
Powered by ViewVC 1.1.2