Splitting Title module support out from [#1536944]. Basically it consists of something like the following added to fieldable_panel_panes_entity_info():

      // Add title replacement support for translations.
      'field replacement' => array(
        'title' => array(
          'field' => array(
            'type' => 'text',
            'cardinality' => 1,
            'translatable' => TRUE,
          ),
          'instance' => array(
            'label' => t('Title'),
            'required' => TRUE,
            'settings' => array(
              'text_processing' => 0,
            ),
            'widget' => array(
              'weight' => -5,
            ),
          ),
        ),
      ),
CommentFileSizeAuthor
#2 1860484-title-module-support.patch1.03 KBdave reid

Comments

dave reid’s picture

See also #1588882: Use title for entity label when admin_title isn't present which is discussing the uses of the title fields.

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

Extracted version of the title module support from #1536944: Allow panes to be translated.

hydra’s picture

Status: Needs review » Reviewed & tested by the community

Patch is working perfectly fine, thanks!
Right now this patch is needed to fully translate a fieldable_panel_pane, no matter what might will happen to the title in the future.

mrfelton’s picture

agreed.

dave reid’s picture

Status: Reviewed & tested by the community » Fixed

Fixed title is not actually required, and committed to 7.x-1.x.
http://drupalcode.org/project/fieldable_panels_panes.git/commit/9102090

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.