protected function SchemaForm::descriptionFormElement in Entity Construction Kit (ECK) 7.3
Schmea form section for schema descriptions.
Parameters
string $value: The current value
Return value
array form api array piece.
File
- ./
eck.schema.inc, line 75 - A helper class to create schema forms
Class
- SchemaForm
- @file A helper class to create schema forms
Code
protected function descriptionFormElement($value) {
$key = "description";
$element = array(
'#title' => t('Description'),
'#type' => 'textarea',
'#default_value' => $value,
'#disabled' => array_key_exists($key, $this->lockedProperties) ? $this->lockedProperties[$key] : FALSE,
);
return $element;
}