Project

General

Profile

« Previous | Next » 

Revision 1272ab60

Added by Andreas Kohlbecker over 2 years ago

ref #9794 wfo link improved - update script

View differences:

modules/cdm_dataportal/ext_links/ext_links.install
128 128
}
129 129

  
130 130
/**
131
 * - remove linkg to ePIC
131
 * - remove link to ePIC
132
 * - set improved ulr for the wfo link
132 133
 */
133 134
function ext_links_update_7003() {
134 135

  
......
138 139
    db_delete('ext_links')->condition('id', 'epic')->execute();
139 140
    $tasks_performed[] = "ext_link for ePIC removed";
140 141
  }
142
  if(array_key_exists('wfo', $links_templates)) {
143
    $defaults = ext_links_template_defaults();
144
    db_update('ext_links')->fields(array(
145
      'link' => $defaults['wfo']['link']
146
    ))->condition('id', 'wfo')
147
      ->execute();
148
    $tasks_performed[] = "set improved URL for the wfo external link";
149
  }
141 150
  return join("; \n", $tasks_performed);
142 151
}
143 152

  

Also available in: Unified diff