Go to the source code of this file.
|
| | $entity_type = elgg_extract('entity_type', $vars) |
| | Generic entity edit/add form. More...
|
| |
| | $entity_subtype = elgg_extract('entity_subtype', $vars) |
| |
| | $entity = elgg_extract('entity', $vars) |
| |
| | $fields = elgg_extract('fields', $vars) |
| |
| if(empty($entity_type)||empty($entity_subtype)||empty($fields)) | $header = elgg_extract('header', $vars) |
| |
| if(is_string($header)) | $header_default = elgg_entity_has_capability($entity_type, $entity_subtype, 'header_image') |
| |
| if(elgg_extract('add_header_image', $vars, $header_default)|| $entity?->hasIcon('master', 'header')) foreach($fields as $field) | $footer = elgg_extract('footer', $vars) |
| |
◆ $entity
◆ $entity_subtype
◆ $entity_type
Generic entity edit/add form.
@uses $vars['entity_type'] (required) the type of the entity @uses $vars['entity_subtype'] (required) the subtype of the entity @uses $vars['fields'] (required) the form fields to draw @uses $vars['entity'] (optional) the entity being edited @uses $vars['footer'] (optional) the form footer (false for no footer, is not provided get a default footer) @uses $vars['header'] (optional) header text shown at the top of the form @uses $vars['add_header_image'] (optional) (bool) add an input for an entity header image upload (default: entity capability 'header_image')
- Examples
- /root/Elgg/engine/classes/Elgg/FormsService.php, and /root/Elgg/engine/lib/views.php.
Definition at line 14 of file edit.php.
◆ $fields
◆ $footer
| if (elgg_extract( 'add_header_image', $vars, $header_default)||$entity?->hasIcon( 'master', 'header')) foreach ( $fields as $field) $footer = elgg_extract('footer', $vars) |
◆ $header
| if (empty( $entity_type)||empty( $entity_subtype)||empty( $fields)) $header = elgg_extract('header', $vars) |
◆ $header_default