function commerce_kickstart_update_7210 in Commerce Kickstart 7.2
Enable automatic title replacement for node and commerce product bundles.
File
- ./
commerce_kickstart.install, line 1042 - Installation code for Commerce Kickstart.
Code
function commerce_kickstart_update_7210() {
foreach (array(
'node',
'commerce_product',
) as $entity_type) {
$title_settings = array(
'auto_attach' => array(
'title' => 'title',
),
'hide_label' => array(
'entity' => 'entity',
'page' => 0,
),
);
variable_set('title_' . $entity_type, $title_settings);
}
}