function fape_field_edit_node_author_form in Field API Pane Editor (FAPE) 7
Subform to edit the entity 'author' field.
This isn't a true form. As such it modifies the $form by reference.
1 string reference to 'fape_field_edit_node_author_form'
- fape_field_edit_page in ./
fape.module - Page callback to edit an entity field.
File
- ./
fape.module, line 332 - Adds direct field editing via contextual links.
Code
function fape_field_edit_node_author_form(&$form, &$form_state) {
$node = $form_state['entity'];
$form['name'] = array(
'#type' => 'textfield',
'#title' => t('Authored by'),
'#maxlength' => 60,
'#autocomplete_path' => 'user/autocomplete',
'#default_value' => !empty($node->name) ? $node->name : '',
'#weight' => -1,
'#description' => t('Leave blank for %anonymous.', array(
'%anonymous' => variable_get('anonymous', t('Anonymous')),
)),
);
$form['#validate'][] = 'fape_field_edit_node_author_form_validate';
$form['#submit'][] = 'fape_field_edit_node_author_form_submit';
}