function views_ifempty_handler_field::admin_summary in Views If Empty 6
Same name and namespace in other branches
- 7 includes/views/handlers/views_ifempty_handler_field.inc \views_ifempty_handler_field::admin_summary()
Add some summary text to the UI that explains what this field will do.
File
- handlers/
views_ifempty_handler_field.inc, line 82 - Views field handler to output an alterate field when a field is empty.
Class
- views_ifempty_handler_field
- @file Views field handler to output an alterate field when a field is empty.
Code
function admin_summary() {
if (!empty($this->options['emptyfield']) && !empty($this->options['outputfield'])) {
return t('If %emptyfield is empty, output %outputfield', array(
'%emptyfield' => $this->options['emptyfield'],
'%outputfield' => $this->options['outputfield'],
));
}
else {
return t('Invalid field selection');
}
}