function breakpoints_admin_breakpoint_actions_form

cis7 breakpoints.admin.inc breakpoints_admin_breakpoint_actions_form($form, &$form_state, $group_name, $action, $breakpoint)

Admin action form: enable, disable, delete, export

2 string references to 'breakpoints_admin_breakpoint_actions_form'
breakpoints_admin_breakpoint_actions_page in sites/all/modules/local_contrib/breakpoints/breakpoints.admin.inc
Page callback.
breakpoints_menu in sites/all/modules/local_contrib/breakpoints/breakpoints.module
Implements hook_menu().

File

sites/all/modules/local_contrib/breakpoints/breakpoints.admin.inc, line 577
Breakpoints - admin settings

Code

function breakpoints_admin_breakpoint_actions_form($form, &$form_state, $group_name, $action, $breakpoint) {
  switch ($action) {
    case 'enable':
    case 'disable':
    case 'delete':
      $form_state['group_name'] = $group_name;
      $form_state['action'] = $action;
      $form_state['breakpoint'] = $breakpoint;
      $question = t('Are you sure you want to %action %breakpoint', array(
        '%action' => $action,
        '%breakpoint' => $breakpoint,
      ));
      if (!empty($group_name)) {
        $path = 'admin/config/media/breakpoints/groups/' . $group_name;
      }
      else {
        $path = 'admin/config/media/breakpoints';
      }
      $form = confirm_form($form, $question, $path, '');
      break;
    case 'export':
      $form = drupal_get_form('breakpoints_admin_breakpoint_export_form', $breakpoint);
      break;
  }
  return $form;
}