Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
email
Commits
f0cce5f5
Commit
f0cce5f5
authored
Apr 15, 2008
by
Matthias Hutterer
Browse files
fixed database columns (#146886) and removed case view in hook_field
parent
ce936e4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
email.module
email.module
+1
-14
No files found.
email.module
View file @
f0cce5f5
...
...
@@ -30,26 +30,13 @@ function email_field_settings($op, $field) {
switch
(
$op
)
{
case
'database columns'
:
$columns
=
array
(
'email'
=>
array
(
'type'
=>
'varchar'
,
'length'
=>
255
,
'not null'
=>
TRUE
),
'email'
=>
array
(
'type'
=>
'varchar'
,
'length'
=>
255
,
'not null'
=>
TRUE
,
'default'
=>
"''"
),
);
return
$columns
;
}
}
/**
* Implementation of hook_field().
*/
function
email_field
(
$op
,
&
$node
,
$field
,
&
$node_field
,
$teaser
,
$page
)
{
switch
(
$op
)
{
case
'view'
:
foreach
(
$node_field
as
$delta
=>
$item
)
{
$node_field
[
$delta
][
'view'
]
=
content_format
(
$field
,
$item
,
'email'
,
$node
);
}
return
theme
(
'field'
,
$node
,
$field
,
$node_field
,
$teaser
,
$page
);
}
}
/**
* Implementation of hook_field_formatter_info().
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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