function addressfield_process_format_form in Address Field 7
Generate a full-fledged form from a format snippet, as returned by addressfield_formats().
Related topics
1 string reference to 'addressfield_process_format_form'
- addressfield_generate in ./
addressfield.module - Generate a format for a given address.
File
- ./
addressfield.module, line 208 - Defines a field for attaching country-specific addresses to entities.
Code
function addressfield_process_format_form($format, &$form_state, $complete_form) {
// Make sure to load all the plugins that participated in this format.
ctools_include('plugins');
foreach ($format['#handlers'] as $handler) {
ctools_plugin_load_function('addressfield', 'format', $handler, 'format callback');
}
_addressfield_process_format_form($format, $format['#address']);
return $format;
}