| 1 |
<?php |
<?php |
| 2 |
// $Id: ec_product.install,v 1.2.2.18 2009/10/18 14:18:20 davea Exp $ |
// $Id: ec_product.install,v 1.2.2.19 2009/10/18 22:31:32 davea Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 267 |
drupal_write_record('permission', $perm, 'pid'); |
drupal_write_record('permission', $perm, 'pid'); |
| 268 |
} |
} |
| 269 |
} |
} |
| 270 |
|
return array(); |
| 271 |
|
} |
| 272 |
|
|
| 273 |
|
/** |
| 274 |
|
* Adds column to ec_product table to for anonymous policy |
| 275 |
|
*/ |
| 276 |
|
function ec_product_update_6404() { |
| 277 |
|
$ret = array(); |
| 278 |
|
if (db_table_exists('ec_product') && !db_column_exists('ec_product', 'anon_policy')) { |
| 279 |
|
db_add_field($ret, 'ec_product', 'anon_policy', array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0)); |
| 280 |
|
} |
| 281 |
return array(); |
return array(); |
| 282 |
} |
} |