You are here

function hook_flexiform_group_info in Flexiform 7

Inform flexiform of a group of forms.

Flexiforms are assigned to a group to allow additional logic to be performed by other modules. For example, a module may define a group which it then adds additional fields to that are relevant for that form group.

Return value

An array whose keys are the value for the group and whose values are an an array with the following:

  • label: The human-readable name of the group.
  • locked: Set to TRUE to prevent forms being created in this group through the UI.
1 function implements hook_flexiform_group_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

flexiform_flexiform_group_info in ./flexiform.flexiform.inc
Implements hook_flexiform_group_info().
1 invocation of hook_flexiform_group_info()
flexiform_get_groups in ./flexiform.module
Retreive a list of flexiform groups.

File

./flexiform.api.php, line 21
API documentation for Flexiform.

Code

function hook_flexiform_group_info() {
  return array(
    'application' => array(
      'label' => t('Application'),
      // We want site builders to use the UI for this group.
      'locked' => FALSE,
    ),
  );
}