function bootstrap_tour_configure_add_step_submit in Bootstrap Tour 7
Add a step to the configuration form
_state
Parameters
array $form:
1 string reference to 'bootstrap_tour_configure_add_step_submit'
- bootstrap_tour_configure_form in ./
bootstrap_tour.admin.inc - Implements hook_form()
File
- ./
bootstrap_tour.admin.inc, line 354
Code
function bootstrap_tour_configure_add_step_submit($form, &$form_state) {
// Increase the amount of steps
$form_state['storage']['guided tours']['tooltips'][$form_state['storage']['guided tours']['steps']] = 1;
$form_state['storage']['guided tours']['steps']++;
// Signalize Drupal to rebuild the form
$form_state['rebuild'] = true;
$form_state['storage']['guided tours']['modified step'] = $form_state['storage']['guided tours']['steps'] - 1;
}