function views_handler_field_jeditable::render in jEditable inline content editing 7
Render the field.
Parameters
$values: The values retrieved from the database.
Overrides views_handler_field_boolean::render
File
- includes/
views_handler_field_jeditable.inc, line 29
Class
- views_handler_field_jeditable
- Base field handler that has no options and renders an unformatted field.
Code
function render($values) {
$value = $this
->get_value($values);
// krumo($this->field_alias); die;
// krumo($value); die;
$element['value'] = $this
->get_value($values);
$field['field_name'] = substr($this->field_alias, strpos($this->field_alias, '_') + 1);
// krumo($field['field_name']); die;
$entity = $values->_field_data['nid']['entity'];
// $entity_type['nid']=$values->nid;
$entity_type = $values->_field_data['nid']['entity_type'];
// $entity_type='node';
$widget_type = 'textfield';
$field_delta = 0;
// krumo(theme('jeditable_formatter_jeditable', array('element' => $item, 'field' => $instance, 'entity' => $entity, 'entity_type' => $entity_type, 'widget_type' => $widget_type, 'delta' => $field_delta ))); die;
return theme('jeditable_formatter_jeditable', array(
'element' => $element,
'field' => $field,
'entity' => $entity,
'entity_type' => $entity_type,
'widget_type' => $widget_type,
'delta' => $field_delta,
));
// return $value;
// return $this->sanitize_value($value);
}