function simplemeta_get_form_elements in Simple Meta 7
Same name and namespace in other branches
- 6.2 simplemeta.module \simplemeta_get_form_elements()
Get all implemented form elements for SimpleMeta form.
2 calls to simplemeta_get_form_elements()
- simplemeta_meta_form in ./
simplemeta.module - SimpleMeta form builder.
- simplemeta_meta_form_submit_save in ./
simplemeta.module - SimpleMeta form submit callback on save.
File
- ./
simplemeta.module, line 623 - SimpleMeta module.
Code
function simplemeta_get_form_elements($meta = NULL, $reset = FALSE) {
$info = simplemeta_get_info($reset);
$form = array();
foreach ($info as $key => $definition) {
$function = $definition['form'];
if (function_exists($function)) {
$form[$key] = $function($meta);
}
}
return $form;
}