class BatEventTypeUIController in Booking and Availability Management Tools for Drupal 7
UI controller.
Hierarchy
- class \EntityDefaultUIController
- class \BatEventTypeUIController
Expanded class hierarchy of BatEventTypeUIController
1 string reference to 'BatEventTypeUIController'
- bat_event_entity_info in modules/
bat_event/ bat_event.module - Implements hook_entity_info().
File
- modules/
bat_event/ bat_event_type.admin.inc, line 11 - BatEvent type editing UI.
View source
class BatEventTypeUIController extends EntityDefaultUIController {
/**
* Overrides hook_menu() defaults.
*/
public function hook_menu() {
$items = parent::hook_menu();
foreach ($items as &$item) {
unset($item['access callback']);
$item['access arguments'] = array(
'administer bat_event_type entities',
);
}
$items[$this->path]['description'] = 'Manage event types, including adding and removing fields and the display of fields.';
$items[$this->path]['weight'] = '3';
$items[$this->path]['type'] = MENU_LOCAL_TASK;
return $items;
}
/**
* {@inheritdoc}
*/
protected function overviewTableRow($conditions, $id, $entity, $additional_cols = array()) {
$row = parent::overviewTableRow($conditions, $id, $entity, $additional_cols);
$row[] = l(t('manage states'), $this->path . '/manage/' . $id . '/states');
return $row;
}
/**
* {@inheritdoc}
*/
protected function operationCount() {
return parent::operationCount() + 1;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BatEventTypeUIController:: |
public | function |
Overrides hook_menu() defaults. Overrides EntityDefaultUIController:: |
|
BatEventTypeUIController:: |
protected | function |
Returns the operation count for calculating colspans. Overrides EntityDefaultUIController:: |
|
BatEventTypeUIController:: |
protected | function |
Generates the row for the passed entity and may be overridden in order to
customize the rows. Overrides EntityDefaultUIController:: |
|
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 | Entity submit builder invoked via entity_ui_form_submit_build_entity(). | |
EntityDefaultUIController:: |
public | function | Provides definitions for implementing hook_forms(). | |
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:: |
public | function |