You are here

function properties_category_load in Dynamic properties 7

Load an category based on the name.

Parameters

$name: Machine readable name of the category.

5 calls to properties_category_load()
PropertiesBaseTestCase::createCategory in ./properties.test
Create a category with attributes through the administration interface, load and return it.
PropertiesCompareTestCase::testPropertyFieldCreation in properties_compare/properties_compare.test
Test comparing to similiar nodes.
properties_field_widget_form in ./properties.module
Implements hook_field_widget_form().
properties_template_admin_templates_form_validate in properties_template/properties_template.admin.inc
Form builder; Valdate template form.
properties_widget_add_category in ./properties.module
Add a category to the widget form.
1 string reference to 'properties_category_load'
properties_admin_categories_form in ./properties.admin.inc
Form builder; Add/Edit form for categories.

File

./properties.module, line 907
This module provides a dynamic property field that can contain an unlimited number of attribute value pairs.

Code

function properties_category_load($name) {
  if (empty($name)) {
    return FALSE;
  }
  $function_name = _properties_get_call('category', 'load');
  return $function_name($name);
}