class MessageTypeUIController in Message 7
UI controller.
Hierarchy
- class \EntityDefaultUIController
- class \MessageTypeUIController
Expanded class hierarchy of MessageTypeUIController
1 string reference to 'MessageTypeUIController'
- message_entity_info in ./
message.module - Implements hook_entity_info().
File
- includes/
message.admin.inc, line 11 - Message type editing UI.
View source
class MessageTypeUIController extends EntityDefaultUIController {
/**
* Overridden to customize the field location.
*/
public function entityFormSubmitBuildEntity($form, &$form_state) {
// We cannot use entity_form_submit_build_entity() any more.
$entity = $form_state['message_type'];
// Extract form values.
form_state_values_clean($form_state);
foreach ($form_state['values'] as $key => $value) {
if ($key != 'message_type_fields') {
$entity->{$key} = $value;
}
}
// Invoke all specified builders for copying form values to entity
// properties.
// @see entity_form_submit_build_entity()
if (isset($form['#entity_builders'])) {
foreach ($form['#entity_builders'] as $function) {
$function('message_type', $entity, $form, $form_state);
}
}
field_attach_submit('message_type', $entity, $form['message_type_fields'], $form_state);
return $entity;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDefaultUIController:: |
protected | property | ||
EntityDefaultUIController:: |
protected | property | ||
EntityDefaultUIController:: |
protected | property | ||
EntityDefaultUIController:: |
public | property | Defines the number of entries to show per page in overview table. | |
EntityDefaultUIController:: |
public | function | Applies an operation to the given entity. | |
EntityDefaultUIController:: |
public | function | Provides definitions for implementing hook_forms(). | |
EntityDefaultUIController:: |
public | function | Provides definitions for implementing hook_menu(). | 1 |
EntityDefaultUIController:: |
protected | function | Returns the operation count for calculating colspans. | |
EntityDefaultUIController:: |
public | function | Builds the operation form. | |
EntityDefaultUIController:: |
public | function | Operation form submit callback. | 1 |
EntityDefaultUIController:: |
public | function | Operation form validation callback. | |
EntityDefaultUIController:: |
public | function | Builds the entity overview form. | |
EntityDefaultUIController:: |
public | function | Overview form submit callback. | |
EntityDefaultUIController:: |
public | function | Overview form validation callback. | |
EntityDefaultUIController:: |
public | function | Generates the render array for a overview table for arbitrary entities matching the given conditions. | |
EntityDefaultUIController:: |
protected | function | Generates the table headers for the overview table. | |
EntityDefaultUIController:: |
protected | function | Generates the row for the passed entity and may be overridden in order to customize the rows. | |
EntityDefaultUIController:: |
public | function | ||
MessageTypeUIController:: |
public | function |
Overridden to customize the field location. Overrides EntityDefaultUIController:: |