function domain_values_from_form_state in Domain Access 7.2
Same name and namespace in other branches
- 6.2 domain.admin.inc \domain_values_from_form_state()
- 7.3 domain.admin.inc \domain_values_from_form_state()
Return an array of values suitable for both create and update sql statements
The last element on this array is ignored by the create sql because it has one fewer placeholder argument as it doesnt require a WHERE clause.
Parameters
$form_state: From state from the submit_hook
Return value
array Array of domain values for insert and update sql operations
1 call to domain_values_from_form_state()
- domain_form_submit in ./
domain.admin.inc - Implement domain_form submit hook.
File
- ./
domain.admin.inc, line 392 - Administration functions for the domain module.
Code
function domain_values_from_form_state($form_state) {
return array(
'subdomain' => $form_state['values']['subdomain'],
'sitename' => $form_state['values']['sitename'],
'scheme' => $form_state['values']['scheme'],
'valid' => $form_state['values']['valid'],
'domain_id' => $form_state['values']['domain_id'],
);
}