function views_ui_reorder_displays_button in Views (for Drupal 7) 6.3
This form doesn't particularly do much; it's really just providing a link but a button seems like it would be nicer here.
It has no submit or anything, as we will never actually submit this form where the form is placed.
1 string reference to 'views_ui_reorder_displays_button'
- template_preprocess_views_ui_edit_view in includes/
admin.inc - Preprocess the view edit page.
File
Code
function views_ui_reorder_displays_button(&$form_state, $view) {
$form['#action'] = url("admin/build/views/nojs/reorder-displays/{$view->name}");
$form['#attributes'] = array(
'class' => 'views-ajax-form',
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Reorder'),
);
return $form;
}