You are here

function _popup_ui_form_buttons in Popup 7

Same name and namespace in other branches
  1. 8 modules/popup_ui/includes/popup_ui.admin.inc \_popup_ui_form_buttons()
1 call to _popup_ui_form_buttons()
popup_ui_form_formatters in modules/popup_ui/includes/popup_ui.admin.inc

File

modules/popup_ui/includes/popup_ui.admin.inc, line 83

Code

function _popup_ui_form_buttons() {
  return array(
    array(
      '#markup' => '<div class="form-item form-buttons">',
    ),
    'submit' => array(
      '#type' => 'submit',
      '#value' => t('Save formats'),
    ),
    array(
      '#markup' => popup_ui_confirm('Reset to defaults', 'Are you sure you want to reset to defaults?<br /> This action cannot be undone!', 'admin/config/user-interface/popup/formats/reset', array(
        'origin' => 'top-left',
        'expand' => 'top-right',
      )),
    ),
    array(
      '#markup' => popup_ui_confirm('Delete all', 'Are you sure you want to delete all the formats?<br /> This action cannot be undone!', 'admin/config/user-interface/popup/formats/whipe', array(
        'origin' => 'top-left',
        'expand' => 'top-right',
      )),
    ),
    array(
      '#markup' => '</div>',
    ),
    '#weight' => 20,
  );
}