You are here

function spaces_controller::summary in Spaces 7.3

Same name and namespace in other branches
  1. 6.3 plugins/spaces_controller.inc \spaces_controller::summary()
  2. 7 plugins/spaces_controller.inc \spaces_controller::summary()

Provide a readable display of an object override for administration.

File

plugins/spaces_controller.inc, line 246

Class

spaces_controller
Abstract base class for a spaces controller. Classes that extend spaces_controller must implement load_original_values().

Code

function summary($id, $value = NULL) {
  switch (gettype($value)) {
    case 'string':
    case 'integer':
    case 'boolean':
    case 'double':
      return filter_xss_admin($value);
    case 'array':
    case 'object':
      return filter_xss_admin(var_export($value, TRUE));
  }
}