You are here

function breakpoints_admin_multiplier_delete_form in Breakpoints 7

1 string reference to 'breakpoints_admin_multiplier_delete_form'
breakpoints_menu in ./breakpoints.module
Implements hook_menu().

File

./breakpoints.admin.inc, line 1113
Breakpoints - admin settings

Code

function breakpoints_admin_multiplier_delete_form($form, &$form_state, $multiplier) {
  $path = 'admin/config/media/breakpoints/multipliers';
  if ($multiplier == '1x') {
    $form['multiplier'] = array(
      '#markup' => t('Multiplier %multiplier can not be deleted! !link', array(
        '%multiplier' => $multiplier,
        '!link' => l(t('Back to overview page.'), $path),
      )),
    );
    return $form;
  }
  $form['multiplier'] = array(
    '#type' => 'value',
    '#value' => $multiplier,
  );
  return confirm_form($form, t('Are you sure you want to delete multiplier %multiplier', array(
    '%multiplier' => $multiplier,
  )), $path);
}