function entity_metadata_form_taxonomy_term in Entity API 7
Callback to get the form of a term.
1 string reference to 'entity_metadata_form_taxonomy_term'
- _entity_info_add_metadata in ./
entity.module - Adds metadata and callbacks for core entities to the entity info.
File
- modules/
callbacks.inc, line 1039 - Provides various callbacks for the whole core module integration.
Code
function entity_metadata_form_taxonomy_term($term) {
// Pre-populate the form-state with the right form include.
$form_state['build_info']['args'] = array(
$term,
);
form_load_include($form_state, 'inc', 'taxonomy', 'taxonomy.admin');
return drupal_build_form('taxonomy_form_term', $form_state);
}