I try to add some fields to content type through this hook as it done in node_example module in Drupal 7 examples but it's not even invoked. What can be wrong?
function education_node_type_insert($content_type){
$fields = _anketa_installed_fields();
foreach($fields as $field){
field_create_field($field);
}
$instances = _anketa_installed_instances();
foreach($instances as $instance){
$instance['entity_type'] = 'node';
$instance['bundle'] = 'anketa';
field_create_field($instance);
}
}