You are here

function command_buttons_handler_argument_bundle::set_argument in Command Buttons 7

Set the input for this argument.

Return value

bool TRUE if it successfully validates; FALSE if it does not.

Overrides views_handler_argument::set_argument

File

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

Class

command_buttons_handler_argument_bundle
Argument handler to accept a node type.

Code

function set_argument($arg) {

  // Replace all - in the URL with _ since - is not valid.
  $this->argument = str_replace('-', '_', $arg);
  return $this
    ->validate_arg($arg);
}