You are here

function simplemeta_get_form_elements in Simple Meta 6.2

Same name and namespace in other branches
  1. 7 simplemeta.module \simplemeta_get_form_elements()
2 calls to simplemeta_get_form_elements()
simplemeta_meta_form in ./simplemeta.module
simplemeta_meta_form_submit_save in ./simplemeta.module

File

./simplemeta.module, line 444

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;
}