Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a view with fields, where $row->type is a node type. When trying
<?php
print variable_get('comment_default_per_page'.$row->type);
?>
getting nothing
What is the correct way of using variable_get() to extract variables? Other function?
Comments
Comment #1
dieuweI was a little stuck on this too for a while, but try this in the field value code:
(Without the PHP tags)
And then this for the output code:
That worked for me.
Comment #2
Liam Morland