| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: archive.install,v 1.3 2007/08/25 05:39:19 susurrus Exp $ |
| 3 |
|
|
| 4 |
function archive_install(){ |
function archive_install() { |
| 5 |
// Initially set all nodes to be visible on archive page |
// Initially set all nodes to be visible on archive page |
| 6 |
$types = node_get_types(); |
$types = node_get_types(); |
| 7 |
variable_set('archive_type_filters', array_keys($types)); |
variable_set('archive_type_filters', array_keys($types)); |
| 8 |
} |
} |
| 9 |
|
|
| 10 |
function archive_uninstall(){ |
function archive_uninstall() { |
| 11 |
variable_del('archive_type_filters'); |
variable_del('archive_type_filters'); |
| 12 |
} |
} |