function taxonomy_machine_name_schema_alter in Taxonomy Machine Name 7
Implements hook_schema_alter().
File
- ./
taxonomy_machine_name.install, line 50 - Taxonomy Machine Name Install File.
Code
function taxonomy_machine_name_schema_alter(&$schema) {
$schema['taxonomy_term_data']['fields']['machine_name'] = array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'default' => NULL,
'description' => 'The taxonomy term machine name.',
);
$schema['taxonomy_term_data']['unique keys']['vid_machine_name'] = array(
'vid',
'machine_name',
);
$schema['taxonomy_term_data']['indexes']['machine_name'] = array(
'machine_name',
);
}