function view::is_translatable
3.x view.inc | view::is_translatable() |
Determine whether a view supports admin string translation.
1 call to view::is_translatable()
- view::process_locale_strings in includes/
view.inc - Process strings for localization, deletion or export to code.
File
- includes/
view.inc, line 2104 - Provides the view object type and associated methods.
Class
- view
- An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.
Code
function is_translatable() {
// If the view is normal or overridden, use admin string translation.
// A newly created view won't have a type. Accept this.
return (!isset($this->type) || in_array($this->type, array(t('Normal'), t('Overridden')))) ? TRUE : FALSE;
}