/[drupal]/contributions/modules/importexportapi/definitions/importexportapi_system.inc
ViewVC logotype

Diff of /contributions/modules/importexportapi/definitions/importexportapi_system.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4, Mon Sep 11 14:49:25 2006 UTC revision 1.4.6.1, Wed May 6 18:30:49 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: importexportapi_system.inc,v 1.3 2006/08/19 15:58:53 jaza Exp $  // $Id: importexportapi_system.inc,v 1.4 2006/09/11 14:49:25 jaza Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 45  function system_def() { Line 45  function system_def() {
45      '#key' => TRUE,      '#key' => TRUE,
46      '#db_uses_sequences' => TRUE      '#db_uses_sequences' => TRUE
47    );    );
48    $def['nid'] = array(    $def['uid'] = array(
49      '#type' => 'int',      '#type' => 'int',
50      '#title' => t('Node ID'),      '#title' => t('User ID'),
51      '#reference_entity' => 'node'      '#reference_entity' => 'users'
52    );    );
53    $def['file_name'] = array(    $def['file_name'] = array(
54      '#title' => t('File name'),      '#title' => t('File name'),
# Line 67  function system_def() { Line 67  function system_def() {
67      '#title' => t('File size'),      '#title' => t('File size'),
68      '#db_field_unaliased' => 'filesize'      '#db_field_unaliased' => 'filesize'
69    );    );
70      $def['status'] = array(
   $def['file_revisions'] = array(  
     '#type' => 'array',  
     '#title' => t('File revisions'),  
     '#xml_plural' => 'file-revisions',  
     '#csv_plural' => 'file-revisions',  
     '#xml_mapping' => 'file-revision'  
   );  
   $def['file_revisions']['fid'] = array(  
     '#type' => 'int',  
     '#title' => t('File ID'),  
     '#reference_entity' => 'file'  
   );  
   $def['file_revisions']['vid'] = array(  
71      '#type' => 'int',      '#type' => 'int',
72      '#title' => t('Node revision ID'),      '#title' => t('Status'),
     '#reference_entity' => 'node',  
     '#reference_field' => array('revisions', 'vid')  
   );  
   $def['file_revisions']['description'] = array(  
     '#title' => t('Description')  
73    );    );
74    $def['file_revisions']['list'] = array(    $def['timestamp'] = array(
75      '#type' => 'int',      '#type' => 'int',
76      '#title' => t('Show in list')      '#title' => t('Last modified date'),
77    );    );
78    
79    $defs['file'] = $def;    $defs['file'] = $def;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.6.1

  ViewVC Help
Powered by ViewVC 1.1.2