function _file_aliases_display_alias in File Aliases 6
3 calls to _file_aliases_display_alias()
- file_aliases_filefield_field in modules/
filefield.inc - Implements CCK's hook_field($op = 'sanitize').
- file_aliases_image_handler_field_image_node_image::render_html in includes/
file_aliases_image_handler_field_image_node_image.inc - Return image html, using image_load() and image_display().
- file_aliases_views_handler_field_upload_fid::render_link in includes/
file_aliases_views_handler_field_upload_fid.inc - Render whatever the data is as a link to the file.
File
- ./
file_aliases.module, line 175 - Contains core functions for the File Aliases module.
Code
function _file_aliases_display_alias($type, $field, $refresh = FALSE) {
static $display = array();
if (empty($display[$type][$field])) {
$result = db_fetch_object(db_query("SELECT filealias FROM {filefield_paths} WHERE type = '%s' AND field = '%s'", $type, $field));
$data = unserialize($result->filealias);
$display[$type][$field] = $data['display'];
}
return $display[$type][$field];
}