function flexiform_add_pane_content_type_content_type in Flexiform 7
Get one sub type of this flexiform edit pane.
1 string reference to 'flexiform_add_pane_content_type_content_type'
- add_pane.inc in plugins/
content_types/ add_pane.inc - Plugin to handle attached entity content types
File
- plugins/
content_types/ add_pane.inc, line 21 - Plugin to handle attached entity content types
Code
function flexiform_add_pane_content_type_content_type($subtype) {
$types =& drupal_static('flexiform_add_pane_content_type_content_types', array());
if (isset($types[$subtype])) {
return $types[$subtype];
}
$form = entity_load_single('flexiform', $subtype);
if (!($display = $form
->getDisplay('FlexiformDisplayAddPane')) || !$display
->isEnabled()) {
return NULL;
}
return array(
'category' => t('Flexiforms'),
'title' => t('Flexiform: @form_label (@form)', array(
'@form_label' => $form->label,
'@form' => $form->form,
)),
'description' => t('Flexiform form edit pane.'),
'edit form' => 'flexiform_add_pane_content_type_options',
);
}