public function i18n_string_textgroup_default::context_remove in Internationalization 7
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
$context: Textgroup and location glued with ':'.
$string: Optional source string (string in default language).
File
- i18n_string/
i18n_string.inc, line 775 - API for internationalization strings
Class
- i18n_string_textgroup_default
- Textgroup handler for i18n_string API
Code
public function context_remove($context, $string = NULL, $options = array()) {
$options += array(
'messages' => $this->debug,
);
$i18nstring = $this
->build_string($context, $string);
$status = $this
->string_remove($i18nstring, $options);
return $this;
}