function breakpoints_admin_breakpoint_actions_form in Breakpoints 7
Admin action form: enable, disable, delete, export
2 string references to 'breakpoints_admin_breakpoint_actions_form'
- breakpoints_admin_breakpoint_actions_page in ./
breakpoints.admin.inc - Page callback.
- breakpoints_menu in ./
breakpoints.module - Implements hook_menu().
File
- ./
breakpoints.admin.inc, line 576 - 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;
}