Revision 5c5f760a
Added by Andreas Kohlbecker almost 3 years ago
modules/cdm_dataportal/ext_links/ext_links.install | ||
---|---|---|
82 | 82 |
/** |
83 | 83 |
* Implements hook_uninstall(). |
84 | 84 |
*/ |
85 |
function hook_uninstall() {
|
|
85 |
function ext_links_uninstall() {
|
|
86 | 86 |
db_drop_table('ext_links'); |
87 | 87 |
} |
88 | 88 |
|
89 |
/** |
|
90 |
* Update function to migrate previous versions |
|
91 |
*/ |
|
92 |
function ext_links_update_7001(){ |
|
93 |
foreach(ext_links_schema() as $table_name => $schema){ |
|
94 |
if(!db_table_exists($table_name)){ |
|
95 |
db_create_table($table_name, $schema); |
|
96 |
} |
|
97 |
} |
|
98 |
ext_links_install(); |
|
99 |
return "ext_links table crated and old settings migrated."; |
|
100 |
} |
|
101 |
|
|
89 | 102 |
/** |
90 | 103 |
* Migrates old ext link templates from drupal vars to the ext_link table. |
91 | 104 |
*/ |
Also available in: Unified diff
ref #9659 ext_links update function to create scheme and migrate settings