function ds_edit_support in Display Suite 7.2
Support for edit module.
Parameters
$field_name: The name of the field.
$output: The output of the field.
$field: The complete field array.
Return value
The field ready for edit module or the same value in case the edit module is not enabled.
3 calls to ds_edit_support()
- ds_render_author_field in ./
ds.module - Render an author field.
- ds_render_date_field in ./
ds.module - Render a date field.
- ds_render_field in ./
ds.module - Render a field.
File
- ./
ds.module, line 1049 - Display Suite core functions.
Code
function ds_edit_support($field_name, $output, $field) {
if (module_exists('edit')) {
$edit_id = "node/" . $field['entity']->nid . "/" . $field_name . "/" . $field['entity']->language . "/" . $field['view_mode'];
$output = edit_wrap_pseudofield($output, $edit_id);
}
return $output;
}