Revision 5c5f760a
Added by Andreas Kohlbecker almost 3 years ago
modules/cdm_dataportal/ext_links/ext_links.admin.inc | ||
---|---|---|
73 | 73 |
* placement in external link block. If omitted, the weight is set to 0. |
74 | 74 |
* Defaults to NULL. |
75 | 75 |
* |
76 |
* @return |
|
76 |
* @return array
|
|
77 | 77 |
* A form array. |
78 | 78 |
* |
79 | 79 |
* @see filter_menu() |
modules/cdm_dataportal/ext_links/ext_links.info | ||
---|---|---|
1 | 1 |
; $Id: ext_links.info,v 1.2.4.1.4.2 2008/09/26 11:58:24 niif Exp a.kroupa $ |
2 | 2 |
name = "CDM External taxa links" |
3 | 3 |
description = A block module for listing external links to taxa information. |
4 |
version = "7.x-1.0"
|
|
4 |
version = "7.x-2.0"
|
|
5 | 5 |
package = "CDM" |
6 | 6 |
dependencies[] = cdm_dataportal |
7 | 7 |
core = 7.x |
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