function social_comments_field_process in Open Social 7
Processes the element before displaying the field.
1 string reference to 'social_comments_field_process'
- social_comments_element_info in ./
social_comments.module - Implements hook_element_info().
File
- ./
social_comments.module, line 167
Code
function social_comments_field_process($element, $form_state, $complete_form) {
$element['url'] = array(
'#type' => 'textfield',
'#maxlength' => SOCIAL_COMMENTS_URL_MAX_LENGTH,
'#title' => t('URL'),
'#default_value' => isset($element['#value']['url']) ? $element['#value']['url'] : NULL,
);
return $element;
}