function view_custom_table_add_custom_table_to_view_form_submit in Views Custom Table 7
Submit and save add_custom_table_to_view_form.
1 string reference to 'view_custom_table_add_custom_table_to_view_form_submit'
- view_custom_table_add_custom_table_to_view_form in ./
view_custom_table.admin.inc - Form to add custom table in table information table.
File
- ./
view_custom_table.admin.inc, line 72 - File for administrative functions.
Code
function view_custom_table_add_custom_table_to_view_form_submit($form, &$form_state) {
// Save table name to form state.
// to carry forward to subsequent pages in the form.
$form_state['table_name'] = $form_state['values']['table_name'];
$form_state['table_description'] = $form_state['values']['table_description'];
// If we have table name rebuild form and show table settings form.
$form_state['page_num'] = 2;
$form_state['rebuild'] = TRUE;
drupal_set_message(t('Add columns relationship for @table.', array(
'@table' => $form_state['values']['table_name'],
)));
}