function values_add_more_submit in Values 6
Same name and namespace in other branches
- 7 values.module \values_add_more_submit()
Submit handler to add more values to a value set. This handler is used when javascript is not available. It makes changes to the form state and the entire form is rebuilt during the page reload.
1 string reference to 'values_add_more_submit'
- values_form in ./
values.module - Form for adding a new value set.
File
- ./
values.module, line 235 - API for managing reusable value sets.
Code
function values_add_more_submit($form, &$form_state) {
// Make the changes we want to the form state.
if ($form_state['values']['values_add_more']) {
$n = $_GET['q'] == 'values/js' ? 1 : 5;
$form_state['values_count'] = count($form_state['values']['data']) + $n;
}
}