I have a view of teasers, and would like to check the status of each node.
Using hook_views_pre_render (in the template.php file of the theme), I can access:
$view->style_plugin->row_plugin
Which gives me the output below (only first few lines printed, using debug):
entity_views_plugin_row_entity_view::__set_state(array(
'entity_type' => 'node',
'entities' =>
array (
0 =>
stdClass::__set_state(array(
'vid' => '19',
'uid' => '1',
'title' => 'My Node Title',
'log' => '',
'status' => '0',
'comment' => '1',
'promote' => '0',
However, I can’t figure out how to access the status variable.
debug($view->style_plugin->row_plugin->entities());
produces a white screen, any variation that I tried either returned NULL or a white screen.
Any help greatly appreciated.