function properties_attribute_load in Dynamic properties 7
Load an attribute based on the name.
Parameters
$name: Machine readable name of the attribute.
5 calls to properties_attribute_load()
- PropertiesBaseTestCase::createAttribute in ./
properties.test - Create an attribute through the administration interface, load and return it.
- properties_admin_categories_form_validate in ./
properties.admin.inc - properties_field_widget_form in ./
properties.module - Implements hook_field_widget_form().
- properties_tmgmt_source_translation_structure in ./
properties.module - Implements hook_tmgmt_source_translation_structure().
- properties_widget_add_attribute_submit in ./
properties.module - Submit callback to add an attribute.
1 string reference to 'properties_attribute_load'
- properties_admin_attributes_form in ./
properties.admin.inc - Form builder; Add/Edit form for attributes.
File
- ./
properties.module, line 839 - This module provides a dynamic property field that can contain an unlimited number of attribute value pairs.
Code
function properties_attribute_load($name) {
if (empty($name)) {
return FALSE;
}
$function_name = _properties_get_call('attribute', 'load');
return $function_name($name);
}