You are here

function module_builder_node_after_build in Module Builder 6

1 string reference to 'module_builder_node_after_build'
module_builder_node_form in ./module_builder.components.inc

File

./module_builder.components.inc, line 168

Code

function module_builder_node_after_build($form) {
  foreach (element_children($form['types']) as $key) {
    if (is_numeric($key)) {
      module_builder_add_js('copy', 'makeUnderscore', '#' . $form['types'][$key]['name']['#id'], '#' . $form['types'][$key]['machine']['#id']);
    }
  }
  return $form;
}