You are here

function menu_node_import_fields in Node import 6

Implementation of hook_node_import_fields().

File

supported/menu.inc, line 12
Support file for the core menu module.

Code

function menu_node_import_fields($type) {
  $fields = array();
  if (($node_type = node_import_type_is_node($type)) !== FALSE) {
    $fields['menu:link_title'] = array(
      'title' => t('Menu link title'),
      'group' => t('Menu settings'),
      'module' => 'menu',
      'is_mappable' => user_access('administer menu'),
    );
    $fields['menu:path'] = array(
      'title' => t('Alias for node which should be used as parent menu'),
      'group' => t('Menu settings'),
      'module' => 'menu',
      'is_mappable' => user_access('administer menu'),
    );
    $fields['menu:parent'] = array(
      'title' => t('Parent Menu'),
      'group' => t('Menu settings'),
      'module' => 'menu',
      'is_mappable' => FALSE,
    );
  }
  return $fields;
}