You are here

function flexinode_node_import_fields in Node import 5

Implementation of hook_node_import_fields().

File

supported/flexinode.inc, line 17

Code

function flexinode_node_import_fields($type) {
  $type = explode('-', $type);
  if ($type[0] == 'flexinode') {
    $content_type = flexinode_load_content_type($type[1]);
    $fields = array(
      'title' => t('Title'),
    );
    foreach ($content_type->fields as $field) {
      $fields['flexinode_' . $field->field_id] = $field->label;
    }
    return $fields;
  }
}