I wanted to have customize footer for a View. The text on footer will depend upon the value of Membership Type. I am using this code

 if ($view->field_member_type[0]['value'] == 'Associate Membership') {
     print '**************************************';
    }

This is not giving any output. How can I check the value of "field_member_type"

Comments

gpk’s picture

AFAIK the $view object is not available in header/footer PHP code (check via get_defined_vars()). In which case you might need to use an attachment view and Views custom field module http://drupal.org/project/views_customfield to let you run code in a field.

pushkarpathak’s picture

Thanks gpk, this module solved my problem.

Regards
chanakya

gpk’s picture

Cool!