function picture_mapping_save in Picture 7
Same name and namespace in other branches
- 7.2 picture.module \picture_mapping_save()
Save mappings.
2 calls to picture_mapping_save()
- picture_admin_breakpoints_submit in ./
picture.admin.inc - Admin form submit.
- picture_admin_import_form_submit in ./
picture.admin.inc - Import mapping.
File
- ./
picture.module, line 150 - Picture formatter.
Code
function picture_mapping_save(&$mapping) {
ctools_include('export');
$update = isset($mapping->id) ? array(
'id',
) : array();
return drupal_write_record('picture_mapping', $mapping, $update);
}