DUF: Declarative Ugly Forms  v0.1-94-g0b7957c
 All Classes Functions Variables Pages
Static Public Member Functions | List of all members
Smalldb Class Reference

Connector to make DUF work with Smalldb. More...

Inheritance diagram for Smalldb:
Inheritance graph

Static Public Member Functions

static updateFieldGroup (&$group_config, $context)
 Update a field group. More...
 

Detailed Description

Connector to make DUF work with Smalldb.

/

Todo:
Some caching would be nice.

Member Function Documentation

static updateFieldGroup ( $group_config,
  $context 
)
static

Update a field group.

Parameters
$group_configcontains partial configuration of the field group. Generator fills in holes in it. There should be some identifier of entity type or whatever is relevant to this generator.
$contextis global context passed from Toolbox. Generator should use only this context to retrieve all it needs to generate field group.
Returns
FALSE if group cannot be updated.
Todo:
Shouldn't we use toolbox?
Todo:
Optimize this.
Todo:
Add permission check to actions

Implements IFieldGroupGenerator.