You are here

function hook_npop_view_data_alter in Node pop-up 7

Alter popup content render array, before rendering.

This function is called for each popup window creation.

Parameters

array $view: An render array of popup content.

object $node: The popup node object.

1 invocation of hook_npop_view_data_alter()
npop_ajax_load_node in ./npop.module
Ajax node loading callback.

File

./npop.api.php, line 23
Hooks provided by Node popup nodule.

Code

function hook_npop_view_data_alter(array &$view, $node) {

  // Change close icon text to FontAwesome close icon.
  $view['node']['closebtn']['#text'] = '<i class="fa fa-close"></i>';
}