You are here

function views_ui_add_buttons in Views (for Drupal 7) 5

Add the up, down, top, bottom, delete buttons to a form.

1 call to views_ui_add_buttons()
views_ui_add_section in ./views_ui.module
Add one of the list sections to the form.

File

./views_ui.module, line 1592

Code

function views_ui_add_buttons(&$form_item) {
  $form_item['delete'] = views_ui_add_button('user-trash.png', t('Delete'), t('Delete this item.'));
  $form_item['up'] = views_ui_add_button('go-up.png', t('Up'), t('Move this item up.'));
  $form_item['down'] = views_ui_add_button('go-down.png', t('Down'), t('Move this item down.'));
  $form_item['top'] = views_ui_add_button('go-top.png', t('Top'), t('Move this item to the top.'));
  $form_item['bottom'] = views_ui_add_button('go-bottom.png', t('Bottom'), t('Move this item to the bottom.'));
}