updated drupal core to 7.51
This commit is contained in:
@@ -589,11 +589,17 @@ function _form_test_tableselect_form_builder($form, $form_state, $element_proper
|
||||
$form['tableselect'] = $element_properties;
|
||||
|
||||
$form['tableselect'] += array(
|
||||
'#prefix' => '<div id="tableselect-wrapper">',
|
||||
'#suffix' => '</div>',
|
||||
'#type' => 'tableselect',
|
||||
'#header' => $header,
|
||||
'#options' => $options,
|
||||
'#multiple' => FALSE,
|
||||
'#empty' => t('Empty text.'),
|
||||
'#ajax' => array(
|
||||
'callback' => '_form_test_tableselect_ajax_callback',
|
||||
'wrapper' => 'tableselect-wrapper',
|
||||
),
|
||||
);
|
||||
|
||||
$form['submit'] = array(
|
||||
@@ -697,6 +703,13 @@ function _form_test_vertical_tabs_form($form, &$form_state) {
|
||||
return $form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajax callback that returns the form element.
|
||||
*/
|
||||
function _form_test_tableselect_ajax_callback($form, &$form_state) {
|
||||
return $form['tableselect'];
|
||||
}
|
||||
|
||||
/**
|
||||
* A multistep form for testing the form storage.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user