DrupalBin
Submit Code
About
Recent Posts
Serializable closures
Closures in menu item arguments
dpr($content['field_headshot'])
Fix for Git push error
Проверка
Code
$item['title'] = $item['title'];
Loading specific field
expire give non-aliased paths
Fix for Code
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
migration
4.6 custom table -> 5.x filefield migration code
May 29, 2008 - 12:43pm — Anonymous
$result
=
db_query
(
"SELECT * FROM {cv_files} WHERE uid = %d"
,
$user46
-
>
uid
)
;
$i
=
0
;
while
(
$row
=
db_fetch_object
(
$result
)
)
{
$old_filepath
= PK_46_PATH .
'/'
.
$row
-
>
filepath
;
filefield
hack
migration
Read more