function element_info_property

Retrieves a single property for the defined element type.

Parameters

$type: An element type as defined by hook_element_info().

$property_name: The property within the element type that should be returned.

$default: (Optional) The value to return if the element type does not specify a value for the property. Defaults to NULL.

3 calls to element_info_property()
ViewEditFormController::renderDisplayTop in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewEditFormController.php
Render the top of the display so it can be updated during ajax operations.
views_ui_add_ajax_trigger in drupal/core/modules/views_ui/admin.inc
Converts a form element in the add view wizard to be AJAX-enabled.
ViewUI::getStandardButtons in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php
Provide a standard set of Apply/Cancel/OK buttons for the forms. Also provide a hidden op operator because the forms plugin doesn't seem to properly provide which button was clicked.

File

drupal/core/includes/common.inc, line 5256
Common functions that many Drupal modules will need to reference.

Code

function element_info_property($type, $property_name, $default = NULL) {
  return ($info = element_info($type)) && array_key_exists($property_name, $info) ? $info[$property_name] : $default;
}