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