| 1 |
<?php |
<?php |
| 2 |
// $Id: flexinode.module,v 1.77.2.4 2007/02/04 18:29:01 ber Exp $ |
// $Id: flexinode.module,v 1.77.2.5 2007/02/04 18:35:35 ber Exp $ |
| 3 |
|
|
| 4 |
// Copyright 2003-2004 Jonathan Chaffer. See LICENSE for redistribution allowances. |
// Copyright 2003-2004 Jonathan Chaffer. See LICENSE for redistribution allowances. |
| 5 |
|
|
| 12 |
if (!isset($types)) { |
if (!isset($types)) { |
| 13 |
$types = array(); |
$types = array(); |
| 14 |
$path = drupal_get_path('module', 'flexinode'); |
$path = drupal_get_path('module', 'flexinode'); |
| 15 |
$files = file_scan_directory($path, '^field_.*\.inc$'); |
$files = file_scan_directory($path, '^field_.*\.inc$', array('.', '..', 'CVS'), 0, FALSE); |
| 16 |
foreach ($files as $filename => $file) { |
foreach ($files as $filename => $file) { |
| 17 |
include_once($filename); |
include_once($filename); |
| 18 |
$function = 'flexinode_'. $file->name .'_name'; |
$function = 'flexinode_'. $file->name .'_name'; |