/** * returns the list of fields that can be imported * * @access public * return array */ function &import($prefix = false) { if (!self::$_import) { self::$_import = array(); $fields =& self::fields(); foreach ($fields as $name => $field) { if (CRM_Utils_Array::value('import', $field)) { if ($prefix) { self::$_import['uf_group'] =& $fields[$name]; } else { self::$_import[$name] =& $fields[$name]; } } } } return self::$_import; }