function certificate_update_6101 in Certificate 7.2
Same name and namespace in other branches
- 8.3 certificate.install \certificate_update_6101()
- 6.2 certificate.install \certificate_update_6101()
- 7.3 certificate.install \certificate_update_6101()
- 3.x certificate.install \certificate_update_6101()
Add mapper column for more than one mapping per node.
File
- ./
certificate.install, line 170 - Install the Certificate module.
Code
function certificate_update_6101() {
$ret = array();
db_add_field('certificate_node', 'mapper', array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'description' => 'The mapper to use.',
'default' => '',
));
db_query("UPDATE {certificate_node} SET mapper = 'content_profile'");
// hook_update_N() no longer returns a $ret array. Instead, return
// nothing or a translated string indicating the update ran successfully.
// See http://drupal.org/node/224333#update_sql.
return t('TODO Add a descriptive string here to show in the UI.');
}