function flashnode_insert in Flash Node 6.2
Same name and namespace in other branches
- 5.6 flashnode.module \flashnode_insert()
- 5.2 flashnode.module \flashnode_insert()
- 5.3 flashnode.module \flashnode_insert()
- 6.3 flashnode.module \flashnode_insert()
Implementation of hook_insert
1 call to flashnode_insert()
- flashnode_update in ./
flashnode.module - Implementation of hook_update
File
- ./
flashnode.module, line 379
Code
function flashnode_insert($node) {
// flashnode_update calls flash_insert, but _update already moved the file
// Also, don't move the file if we are running an import - it is already where we want it
if (!$node->revision && !$node->flashnode['import']) {
// Move the flash file to flash directory
_flashnode_file_move($node);
}
// Insert data into {flashnode}
db_query("INSERT INTO {flashnode} (nid, height, width, display, substitution, flashvars, base, fid, vid, params) VALUES (%d, %d, %d, %d, '%s', '%s', '%s', %d, %d, '%s')", $node->nid, $node->flashnode['height'], $node->flashnode['width'], $node->flashnode['display'], $node->flashnode['substitution'], $node->flashnode['flashvars'], $node->flashnode['base'], $node->flashnode['fid'], $node->vid, $node->flashnode['params']);
}