function theme_jeditable_formatter_jeditable_datetime in jEditable inline content editing 6
Same name and namespace in other branches
- 6.2 jeditable.module \theme_jeditable_formatter_jeditable_datetime()
- 7 jeditable.module \theme_jeditable_formatter_jeditable_datetime()
Theme a CCK text field as a jeditable textfield.
File
- ./
jeditable.module, line 165 - jeditable.module
Code
function theme_jeditable_formatter_jeditable_datetime($element) {
$id = $element['#node']->nid;
$field = $element['#field_name'];
return '<span id="cck-' . $id . '-' . $field . '" class="jeditable-textfield edit-datetime">' . $element[0]['#item']['value'] . '</span>';
}