You are here

function element_properties in Drupal 7

Same name and namespace in other branches
  1. 4 includes/form.inc \element_properties()
  2. 5 includes/common.inc \element_properties()
  3. 6 includes/common.inc \element_properties()

Gets properties of a structured array element (keys beginning with '#').

1 call to element_properties()
filter_process_format in modules/filter/filter.module
Expands an element into a base element with text format selector attached.

File

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

Code

function element_properties($element) {
  return array_filter(array_keys((array) $element), 'element_property');
}