function views_ifempty_handler_field::admin_summary in Views If Empty 7
Same name and namespace in other branches
- 6 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.
Overrides views_handler_field::admin_summary
File
- includes/
views/ handlers/ views_ifempty_handler_field.inc, line 90 - A views handler to output an alterate field when a field is empty.
Class
- views_ifempty_handler_field
- @file A views 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'],
'!is' => $this->options['reverse'] ? t('is not') : t('is'),
'%outputfield' => $this->options['outputfield'],
));
}
else {
return t('Invalid field selection');
}
}