12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- function admin_theme_install() {
-
- db_query("UPDATE {system} SET weight = 10 WHERE name = 'admin_theme'");
-
- $link = array('!link' => l(t('Administer > Appearance > Administration theme'), 'admin/appearance'));
- drupal_set_message(t("Administration theme module settings are available under !link", $link));
- }
- function admin_theme_uninstall() {
-
- variable_del('admin_theme_path');
- variable_del('admin_theme_path_disallow');
-
-
-
-
- $admin_theme_options = admin_theme_admin_theme_info();
- $options = array();
- foreach ($admin_theme_options as $option => $info) {
- $info['option'] = $option;
- $info['module'] = 'admin_theme';
- $options[] = $info;
- }
-
-
-
- $list = array_merge(admin_theme_list(), $options);
-
-
- foreach ($list as $info) {
- $var = admin_theme_variable_name($info['module'], $info['option']);
- variable_del($var);
- }
- }
|