Revision 10c4424f
Added by Andreas Kohlbecker about 4 years ago
modules/cdm_dataportal/ext_links/ext_links.module | ||
---|---|---|
244 | 244 |
'text_description' => 'The text of the link that is displayed..', |
245 | 245 |
'category' => 'Category', |
246 | 246 |
); |
247 |
/* |
|
247 |
|
|
248 | 248 |
$ext_links[18] = array( |
249 | 249 |
'form' => 'fairchild', |
250 | 250 |
'form_title' => 'Fairchild Guide To Palms', |
... | ... | |
255 | 255 |
'text_title' => 'Fairchild Guide To Palms text', |
256 | 256 |
'text_description' => 'The text of the link that is displayed..', |
257 | 257 |
'category' => 'Category', |
258 |
'disabled' => true // programatically disabled since this link does no longer exist. |
|
258 | 259 |
); |
259 |
*/ |
|
260 |
|
|
260 | 261 |
$ext_links[19] = array( |
261 |
'form' => 'ggbm',
|
|
262 |
'form' => 'ggbn',
|
|
262 | 263 |
'form_title' => 'Global Genome Biodiversity Network', |
263 | 264 |
'check_title' => 'Display Global Genome Biodiversity Network Link?', |
264 | 265 |
'link_title' => 'Global Genome Biodiversity Network link', |
... | ... | |
270 | 271 |
); |
271 | 272 |
|
272 | 273 |
|
273 |
for ($i = 0; $i < sizeof($ext_links); $i++) { |
|
274 |
foreach (array_keys($ext_links) as $i) { |
|
275 |
if(isset($ext_links[$i]['disabled'])){ |
|
276 |
continue; |
|
277 |
} |
|
274 | 278 |
$form[$ext_links[$i]['form']] = array( |
275 | 279 |
'#type' => 'fieldset', |
276 | 280 |
'#title' => t('@title', array('@title' => $ext_links[$i]['form_title'])), |
Also available in: Unified diff
fix #8845 fixing bug in ext-links introduced by commenting broken link and invalid key for GGBN