function flexiform_flexiform_display_info in Flexiform 7
Implements hook_flexiform_display_info().
File
- ./
flexiform.flexiform.inc, line 283 - All the flexiform hooks.
Code
function flexiform_flexiform_display_info() {
$displays = array();
$displays['FlexiformDisplayCreatePage'] = array(
'label' => t('Add page'),
'description' => t('A page to add a new submission of the form. Will create a new base entity.'),
);
$displays['FlexiformDisplayEditPage'] = array(
'label' => t('Edit page'),
'description' => t('A page to an edit form. Will load an existing base entity.'),
);
if (module_exists('ctools')) {
$displays['FlexiformDisplayAddPane'] = array(
'label' => t('Add Pane (Ctools Content)'),
'description' => t('Expose the form in a Ctools Content Plugin.'),
);
$displays['FlexiformDisplayEditPane'] = array(
'label' => t('Edit Pane (Ctools Content)'),
'description' => t('Expose the form in a Ctools Content Plugin.'),
);
$displays['FlexiformDisplayCreateModal'] = array(
'label' => t('Add Modal Form'),
'description' => t('Expose the form in a Ctools modal.'),
);
$displays['FlexiformDisplayEditModal'] = array(
'label' => t('Edit Modal Form'),
'description' => t('Expose the form in a Ctools modal.'),
);
}
if (module_exists('user')) {
$displays['FlexiformDisplayUserCategory'] = array(
'label' => t('User category'),
'description' => t('Expose this form as a tab under user edit.'),
);
}
if (module_exists('commerce_checkout')) {
$displays['FlexiformDisplayCheckoutPane'] = array(
'label' => t('Checkout Pane'),
'description' => t('Expose this form as a checkout pane. (Commerce Order must be the base entity)'),
);
}
return $displays;
}