| 7 common.inc | element_info_property($type, $property_name, $default = NULL) |
| 8 common.inc | element_info_property($type, $property_name, $default = NULL) |
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 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 core/
modules/ views_ui/ admin.inc - Converts a form element in the add view wizard to be AJAX-enabled.
- ViewUI::getStandardButtons in 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
- core/
includes/ common.inc, line 5720 - 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;
}