Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
74cae369
Commit
74cae369
authored
Sep 11, 2013
by
Angie Byron
Browse files
Issue
#2086129
by yched: Fixed Leftover text_field_schema().
parent
be46d340
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/text/text.install
View file @
74cae369
...
...
@@ -5,67 +5,6 @@
* Install, update, and uninstall functions for the Text module.
*/
/**
* Implements hook_field_schema().
*/
function
text_field_schema
(
$field
)
{
switch
(
$field
[
'type'
])
{
case
'text'
:
$columns
=
array
(
'value'
=>
array
(
'type'
=>
'varchar'
,
'length'
=>
$field
[
'settings'
][
'max_length'
],
'not null'
=>
FALSE
,
),
);
break
;
case
'text_long'
:
$columns
=
array
(
'value'
=>
array
(
'type'
=>
'text'
,
'size'
=>
'big'
,
'not null'
=>
FALSE
,
),
);
break
;
case
'text_with_summary'
:
$columns
=
array
(
'value'
=>
array
(
'type'
=>
'text'
,
'size'
=>
'big'
,
'not null'
=>
FALSE
,
),
'summary'
=>
array
(
'type'
=>
'text'
,
'size'
=>
'big'
,
'not null'
=>
FALSE
,
),
);
break
;
}
$columns
+=
array
(
'format'
=>
array
(
'type'
=>
'varchar'
,
'length'
=>
255
,
'not null'
=>
FALSE
,
),
);
return
array
(
'columns'
=>
$columns
,
'indexes'
=>
array
(
'format'
=>
array
(
'format'
),
),
'foreign keys'
=>
array
(
'format'
=>
array
(
'table'
=>
'filter_format'
,
'columns'
=>
array
(
'format'
=>
'format'
),
),
),
);
}
/**
* Moves teaser length from variable to config.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment