function physical_dimensions in Physical Fields 7
Returns an associative array of dimensions.
4 calls to physical_dimensions()
- physical_dimensions_format in ./
physical.module - Returns the formatted dimensions string for the given dimensions value array.
- physical_field_is_empty in ./
physical.module - Implements hook_field_is_empty().
- physical_field_validate in ./
physical.module - Implements hook_field_validate().
- physical_field_widget_form in ./
physical.module - Implements hook_field_widget_form().
10 string references to 'physical_dimensions'
- MigratePhysicalDimensionsFieldHandler::__construct in includes/
migrate/ dimensions.inc - physical_dimensions_property_info_callback in ./
physical.module - Callback to alter the property info of Dimensions fields.
- physical_feeds_processor_targets_alter in ./
physical.feeds.inc - Implements hook_feeds_processor_targets_alter().
- physical_field_formatter_info in ./
physical.module - Implements hook_field_formatter_info().
- physical_field_info in ./
physical.module - Implements hook_field_info().
File
- ./
physical.module, line 1083 - Defines fields (e.g. weight and dimensions) to support describing the physical attributes of entities.
Code
function physical_dimensions() {
$dimensions = array(
'length' => array(
'name' => t('Length'),
),
'width' => array(
'name' => t('Width'),
),
'height' => array(
'name' => t('Height'),
),
);
drupal_alter('physical_dimension_info', $dimensions);
return $dimensions;
}