| 1 |
<?php
|
| 2 |
// $Id: edit_term.install,v 1.1.2.1 2008/03/22 11:52:21 dman Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_install().
|
| 6 |
*
|
| 7 |
* No database schema required or planned,
|
| 8 |
*/
|
| 9 |
function edit_term_install() {
|
| 10 |
// Ensure this always runs AFTER menu.module and the rest of core has done its forms;
|
| 11 |
db_query("UPDATE {system} SET weight = 3 WHERE name = 'edit_term'");
|
| 12 |
drupal_set_message(t('
|
| 13 |
Installed edit term module and enabled the "Edit term link" block.
|
| 14 |
You can configure this block at !admin.
|
| 15 |
Term Edit UI Enhancements to the Admin screens are now available to those with appropriate permissions.
|
| 16 |
You should see new features when visiting term edit pages.
|
| 17 |
!help_link
|
| 18 |
',
|
| 19 |
array(
|
| 20 |
'!admin' => l(t('Administer È Site Building È Blocks'), 'admin/build/block'),
|
| 21 |
'!help_link' => l('Help', 'admin/help/edit_term'),
|
| 22 |
)
|
| 23 |
));
|
| 24 |
}
|
| 25 |
|
| 26 |
/**
|
| 27 |
* Implementation of hook_uninstall().
|
| 28 |
*/
|
| 29 |
function edit_term_uninstall() {
|
| 30 |
variable_del('edit_term_link');
|
| 31 |
}
|