class EckInlineEntityFormController in Entity Construction Kit (ECK) 7.3
Same name and namespace in other branches
- 7.2 includes/eck.inline_entity_form.inc \EckInlineEntityFormController
@file Defines the inline entity form controller for ECK Entities.
Hierarchy
Expanded class hierarchy of EckInlineEntityFormController
1 string reference to 'EckInlineEntityFormController'
- eck__entity_type__info in ./
eck.entity_type.inc - Generate the entity info for a specific entity.
File
- includes/
eck.inline_entity_form.inc, line 8 - Defines the inline entity form controller for ECK Entities.
View source
class EckInlineEntityFormController extends EntityInlineEntityFormController {
/**
* Overrides EntityInlineEntityFormController::labels().
*/
public function labels() {
$entity_info = entity_get_info($this->entityType);
$labels = array(
'singular' => $entity_info['label'],
'plural' => $entity_info['label'],
);
// The admin has specified the exact labels that should be used.
if ($this->settings['override_labels']) {
$labels = array(
'singular' => $this->settings['label_singular'],
'plural' => $this->settings['label_plural'],
);
}
return $labels;
}
/**
* Overrides EntityInlineEntityFormController::entityForm().
*/
public function entityForm($entity_form, &$form_state) {
$entity_form = array_merge($entity_form, eck__entity__form($entity_form, $form_state, $entity_form['#entity']));
unset($entity_form['submit']);
return $entity_form;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EckInlineEntityFormController:: |
public | function |
Overrides EntityInlineEntityFormController::entityForm(). Overrides EntityInlineEntityFormController:: |
|
EckInlineEntityFormController:: |
public | function |
Overrides EntityInlineEntityFormController::labels(). Overrides EntityInlineEntityFormController:: |
|
EntityInlineEntityFormController:: |
protected | property | ||
EntityInlineEntityFormController:: |
public | property | ||
EntityInlineEntityFormController:: |
public | function | Creates a clone of the given entity. | 2 |
EntityInlineEntityFormController:: |
public | function | Returns an array of css filepaths for the current entity type, keyed by theme name. | 1 |
EntityInlineEntityFormController:: |
public | function | Returns the default entity type labels. | 2 |
EntityInlineEntityFormController:: |
public | function | Returns an array of default settings in the form of key => value. | 2 |
EntityInlineEntityFormController:: |
public | function | Delete permanently saved entities. | 1 |
EntityInlineEntityFormController:: |
public | function | Handles the submission of an entity form. | 4 |
EntityInlineEntityFormController:: |
public | function | Validates the entity form. | 2 |
EntityInlineEntityFormController:: |
public | function | Returns the entity type managed by this controller. | |
EntityInlineEntityFormController:: |
public | function | Returns a setting value. | |
EntityInlineEntityFormController:: |
public | function | Returns the remove form to be shown through the IEF widget. | 1 |
EntityInlineEntityFormController:: |
public | function | Handles the submission of a remove form. Decides what should happen to the entity after the removal confirmation. | |
EntityInlineEntityFormController:: |
public | function | Permanently saves the given entity. | 2 |
EntityInlineEntityFormController:: |
public | function | Returns the settings form for the current entity type. | 2 |
EntityInlineEntityFormController:: |
public | function | Returns an array of fields used to represent an entity in the IEF table. | 4 |
EntityInlineEntityFormController:: |
public | function | 1 |