You are here

function views_bulk_operations_plugin_style::render in Views Bulk Operations (VBO) 6.3

Same name and namespace in other branches
  1. 6 views_bulk_operations_plugin_style.inc \views_bulk_operations_plugin_style::render()

File

./views_bulk_operations_plugin_style.inc, line 129

Class

views_bulk_operations_plugin_style

Code

function render() {

  // We build the groups here to pass them to the node_selector function through the form.
  $sets = $this
    ->render_grouping($this->view->result, $this->options['grouping']);
  $this->sets = $sets;

  // Append suffix to avoid clashing between multiple VBOs on same page.
  static $form_suffix;
  if (isset($form_suffix)) {
    $form_suffix++;
  }
  else {
    $form_suffix = 1;
  }
  return drupal_get_form('views_bulk_operations_form__' . $form_suffix, $this);
}