在下边读《Pro Drupal 7 Development》边做试验。在第二章annotate模块中调试annotate.install发现问题。就是field_create_field($field)函数可以创建 annotate字段,该字段可以在node里面显示,但是下面这段代码貌似没有起作用:
$types = node_type_get_types(); foreach($types as $type) { annotate_delete_annotation($type); } $field = field_info_field('annotation'); if ($field) { field_delete_field('annotation'); } 没有删除我留下的注释,是哪里写错了吗?
后台LOG:
后台LOG: