function i18nstrings_remove in Internationalization 6
Remove source and translations for user defined string.
Though for most strings the 'name' or 'string id' uniquely identifies that string, there are some exceptions (like profile categories) for which we need to use the source string itself as a search key.
Parameters
$name: Textgroup and location glued with ':'.
$string: Optional source string (string in default language).
1 call to i18nstrings_remove()
- i18ncontent_node_type in i18ncontent/
i18ncontent.module - Implementation of hook_node_type().
File
- i18nstrings/
i18nstrings.module, line 1216 - Internationalization (i18n) package - translatable strings.
Code
function i18nstrings_remove($name, $string = NULL) {
$status = i18nstrings_remove_string($name, $string);
// Log status message
$context = i18nstrings_context($name, $string);
$params = i18nstrings_params($context, $string);
switch ($status) {
case SAVED_DELETED:
watchdog('i18nstrings', 'Deleted string %location for textgroup %textgroup: %string', $params);
}
return $status;
}