function vkxp_update_7214 in VK CrossPoster 7.2
Replace message text with token.
File
- ./
vkxp.install, line 112 - vkxp.install Requirements and uninstall functions for the vkxp module.
Code
function vkxp_update_7214() {
$content_types = array_keys(node_type_get_types());
foreach ($content_types as $ct) {
$var = variable_get('vkxp_node_message_field_' . $ct, 'title');
if (!strpos($var, '[')) {
if ($var == 'title') {
$var = '[node:title]';
}
else {
$var = '[node:' . $var . ']';
}
}
variable_set('vkxp_node_message_field_' . $ct, $var);
}
}