function picture_mapping_load in Picture 7
Same name and namespace in other branches
- 7.2 picture.module \picture_mapping_load()
Load mappings.
11 calls to picture_mapping_load()
- picture_admin_breakpoints in ./
picture.admin.inc - Admin form.
- picture_admin_export_form in ./
picture.admin.inc - Export mappings.
- picture_admin_import_form_validate in ./
picture.admin.inc - Validate a mapping import.
- picture_ckeditor_settings_submit in ./
picture.admin.inc - Submit handler for the picture_ckeditor_settings form. Places chosen picture groups into the variables table.
- picture_ckeditor_settings_validate in ./
picture.admin.inc - Validate handler for the picture_ckeditor_settings form. It checks that a fallback image style is selected for every picture group that has been enabled for the CKEditor image dialog.
File
- ./
picture.module, line 129 - Picture formatter.
Code
function picture_mapping_load($name = NULL) {
ctools_include('export');
if ($name) {
$mappings = ctools_export_load_object('picture_mapping', 'names', array(
$name,
));
$mapping = isset($mappings[$name]) ? $mappings[$name] : FALSE;
return $mapping;
}
return ctools_export_load_object('picture_mapping');
}