Experimental project
This is a sandbox project, which contains experimental code for developer use only.
We created 'all_files' view that initially display just file IDs.
In the hook we transform file IDs into links.
The second view of the example initially displays node Titles and Bodies fields.
In the hook we check if the body is empty and if so, then alter the title with text: "The article with empty body".
We can get the field's name in two ways:
$variables['field']->options['id'] == 'field_myfield');
or
$variables['field']->realField == 'field_myfield');
To get a field value we can use the following code:
$field_value = $variables['field']->getValue($variables['row']);
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Created by wombatbuddy on , updated
