You are here

function command_buttons_handler_argument_bundle::summary_argument in Command Buttons 7

Provide the argument to use to link from the summary to the next level.

This will be called once per row of a summary, and used as part of $view->get_url().

Parameters

object $data: The query results for the row.

Overrides views_handler_argument::summary_argument

File

plugins/views/command_buttons_handler_argument_bundle.inc, line 25
Provide views handler arguments for command buttons

Class

command_buttons_handler_argument_bundle
Argument handler to accept a node type.

Code

function summary_argument($data) {

  // Transform all _ into - so that URLs are proper.
  return str_replace('_', '-', $data->{$this->base_alias});
}