| 1 |
<?PHP |
<?PHP |
| 2 |
// $Id: biblio.install,v 1.77 2009/10/01 01:45:42 rjerome Exp $ |
// $Id: biblio.install,v 1.77.2.1 2009/10/26 20:47:07 rjerome Exp $ |
| 3 |
function biblio_install() { |
function biblio_install() { |
| 4 |
$result = array(); |
$result = array(); |
| 5 |
|
|
| 15 |
|
|
| 16 |
$result[] = _set_system_weight(); |
$result[] = _set_system_weight(); |
| 17 |
|
|
| 18 |
if (count($result) == count(array_filter($result))) { |
// if (count($result) == count(array_filter($result))) { |
| 19 |
drupal_set_message(t('The biblio module has successfully added its tables to the database.')); |
// drupal_set_message(t('The biblio module has successfully added its tables to the database.')); |
| 20 |
} |
// } |
| 21 |
else { |
// else { |
| 22 |
drupal_set_message(t('Drupal encountered some errors while attempting to install the database tables for the biblio module.'), 'error'); |
// drupal_set_message(t('Drupal encountered some errors while attempting to install the database tables for the biblio module.'), 'error'); |
| 23 |
} |
// } |
| 24 |
} |
} |
| 25 |
|
|
| 26 |
function biblio_enable() { |
function biblio_enable() { |
| 42 |
} |
} |
| 43 |
|
|
| 44 |
function biblio_disable() { |
function biblio_disable() { |
| 45 |
|
$vids = array(); |
| 46 |
if (module_exists('taxonomy')) { |
if (module_exists('taxonomy')) { |
| 47 |
$voc = taxonomy_get_vocabularies(); |
$voc = taxonomy_get_vocabularies(); |
| 48 |
foreach ($voc as $vid => $vocabulary) { |
foreach ($voc as $vid => $vocabulary) { |
| 1091 |
))->execute(); |
))->execute(); |
| 1092 |
|
|
| 1093 |
} |
} |
| 1094 |
return $result; |
return; |
| 1095 |
} |
} |
| 1096 |
|
|
| 1097 |
function _add_db_field_data_XML() { |
function _add_db_field_data_XML() { |