You are here

function node_quickedit_extra_fields_info in Quick Edit 7

Implements hook_quickedit_extra_fields_info().

@todo document this in quickedit.api.php, but first evolve this to ensure it is a sufficiently complete API.

File

includes/node.inc, line 14
Implements Quick Edit module hooks on behalf of node.module.

Code

function node_quickedit_extra_fields_info() {
  $extra['node'] = array(
    'title' => array(
      'label' => t('Title'),
      'default editor' => 'form',
      'view mode dependent editor' => array(
        'full' => 'plain_text',
        'teaser' => 'plain_text',
      ),
      'quickedit subform id' => 'quickedit_field_node_title_edit_form',
      'form simplification element key' => 'title',
      'rerender callback' => 'quickedit_field_node_title_rerender',
    ),
    'author' => array(
      'label' => t('Author'),
      'default editor' => 'form',
      'quickedit subform id' => 'quickedit_field_node_author_edit_form',
      'form simplification element key' => 'name',
      'rerender callback' => 'quickedit_field_node_author_rerender',
    ),
    'created' => array(
      'label' => t('Created'),
      'default editor' => 'form',
      'quickedit subform id' => 'quickedit_field_node_created_edit_form',
      'form simplification element key' => 'date',
      'rerender callback' => 'quickedit_field_node_created_rerender',
    ),
  );
  return $extra;
}