$view->url,
'#size' => 60,
'#maxlength' => 255,
- '#description' => t('Enter the URL to use for this view in the form of \'dir/dir\'. Do not begin or end the URL with a /. Example: \'view/tracker\'. This is required if providing a page view. You can also add $arg as a placeholder for arguments passed in the URL, for example \'user/$arg/tracker\' or \'view/taxonomy/$arg\'.'),
+ '#description' => t('Enter the URL to use for this view in the form of \'dir/dir\'. Do not begin or end the URL with a /. Example: \'view/tracker\'. This is required if providing a page view. You can also add $arg as a placeholder for arguments passed in the URL, for example \'user/$arg/tracker\' or \'view/taxonomy/$arg\'. Note that any arguments listed here will be required, even if they are listed as optional below. You do not need to list arguments at the end of the path.'),
);
$form['page-info']['page_type'] = array(
@@ -803,7 +803,6 @@ function views_edit_view($view, $op = '') {
'#maxlength' => 5,
'#description' => t('The number of nodes to display per page. If 0, all nodes will be displayed. If not using a pager, this will be the maximum number of nodes in the list.'),
'#attributes' => NULL,
- '#required' => true,
);
$form['page-info']['page_header_fieldset'] = array(
'#type' => 'fieldset',
@@ -1044,7 +1043,7 @@ function views_edit_view($view, $op = '') {
'#cols' => 60,
'#rows' => 6,
'#description' => ''. t('Advanced Usage Only: PHP code that returns a custom array of arguments for the view. Should not include <?php ?> delimiters.') .'
' .
- ''. t('For more information, please see the Argument Handling Code documentation in the Drupal handbook.', array('%arg' => 'http://drupal.org/node/70145')) .'
',
+ ''. t('For more information, please see the Argument Handling Code documentation in the Drupal handbook.', array('%arg' => 'http://drupal.org/node/70145')) .'
',
);
} else {
$form['view_args_php_fieldset']['view_args_php'] = array(
@@ -1872,9 +1871,8 @@ function views_create_view_code($vid) {
$output .= " 'tablename' => " . var_export($fieldbits[0], true) . ",\n";
$output .= " 'field' => " . var_export($fieldbits[1], true) . ",\n";
$output .= " 'operator' => " . var_export($filter['operator'], true) . ",\n";
- $value = var_export($filter['value'], true);
$output .= " 'options' => " . var_export($filter['options'], true) . ",\n";
- $output .= " 'value' => " . var_export($value, true) . ",\n";
+ $output .= " 'value' => " . var_export($filter['value'], true) . ",\n";
$output .= " ),\n";
$requires[$fieldbits[0]] = 1;
}