Skip to content
Snippets Groups Projects
Commit f16d1728 authored by Kevin Hankens's avatar Kevin Hankens
Browse files

Initial update to Field API for D7 - major changes

parent be09f99a
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ INSTALLATION
------------
- Copy tablefield directory to /sites/all/modules
- Enable module at /admin/build/modules
- Add a tablefield to a content type at /admin/content/types
- Add a tablefield to an entity at /admin/structure
AUTHOR/MAINTAINER
-----------------
......
/* $Id$ */
#content-field-edit-form .node-tablefield .form-text,
.field-widget-tablefield .node-tablefield .form-text,
.node-form .node-tablefield .form-text {
width: auto;
margin: 1px 1px 1px 1px;
padding: 1px 1px 1px 1px;
}
#content-field-edit-form .node-tablefield .form-item,
.field-widget-tablefield .node-tablefield .form-item,
.node-form .node-tablefield .form-item {
float: left;
margin: 0 0 0 0;
padding: 0 0 0 0;
}
#content-field-edit-form .node-tablefield table,
.field-widget-tablefield .node-tablefield table,
.node-form .node-tablefield table {
width: auto;
}
#content-field-edit-form .node-tablefield table tr td,
.field-widget-tablefield .node-tablefield table tr td,
.node-form .node-tablefield table tr td {
margin: 0 0 0 0;
padding: 0 0 0 0;
}
#content-field-edit-form .node-tablefield .tablefield-rebuild,
.field-widget-tablefield .node-tablefield .tablefield-rebuild,
.node-form .node-tablefield .tablefield-rebuild {
margin-top: 0.5em;
}
; $Id$
name = TableField
description = Defines a generic tablular data field.
dependencies[] = content
package = CCK
core = 6.x
core = 7.x
files[] = tablefield.css
files[] = tablefield.module
files[] = tablefield.install
......@@ -10,16 +10,12 @@
* Implementation of hook_install().
*/
function tablefield_install() {
drupal_load('module', 'content');
content_notify('install', 'tablefield');
}
/**
* Implementation of hook_uninstall().
*/
function tablefield_uninstall() {
drupal_load('module', 'content');
content_notify('uninstall', 'tablefield');
}
/**
......@@ -28,8 +24,6 @@ function tablefield_uninstall() {
* Notify content module when this module is enabled.
*/
function tablefield_enable() {
drupal_load('module', 'content');
content_notify('enable', 'tablefield');
}
/**
......@@ -38,7 +32,5 @@ function tablefield_enable() {
* Notify content module when this module is disabled.
*/
function tablefield_disable() {
drupal_load('module', 'content');
content_notify('disable', 'tablefield');
}
?>
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment