You are here

function content_features_fields_default in Features 6

Helper function: retrieve default fields by node type.

2 calls to content_features_fields_default()
node_features_export_render in includes/features.node.inc
Implementation of hook_features_export_render().
node_features_revert in includes/features.node.inc
Implementation of hook_features_revert().

File

includes/features.content.inc, line 197

Code

function content_features_fields_default($node_type, $reset = FALSE) {
  static $content_default_fields;
  if (!isset($content_default_fields) || $reset) {
    foreach (features_get_default('content') as $field) {
      $content_default_fields[$field['type_name']][] = $field['field_name'];
    }
  }
  return isset($content_default_fields[$node_type]) ? $content_default_fields[$node_type] : array();
}