You are here

function views_view_add_argument in Views (for Drupal 7) 5

Add argument info to a view.

File

./views.module, line 1204

Code

function views_view_add_argument(&$view, $type, $default, $title, $option = '') {
  $view->argument[] = array(
    'type' => $type,
    'argdefault' => $default,
    'title' => $title,
    'options' => $option,
  );
}