You are here

function path_node_import_fields in Node import 6

Same name and namespace in other branches
  1. 5 supported/path.inc \path_node_import_fields()

Implementation of hook_node_import_fields().

File

supported/path.inc, line 11
Support file for the path core module.

Code

function path_node_import_fields($type) {
  $fields = array();
  if (($node_type = node_import_type_is_node($type)) !== FALSE) {
    $fields['path'] = array(
      'title' => t('URL path settings'),
      'group' => t('URL path settings'),
      'module' => 'path',
      'weight' => 30,
      'is_mappable' => user_access('create url aliases'),
      'default_value' => '',
    );
  }
  return $fields;
}