Commit d0b71397 authored by KarenS's avatar KarenS
Browse files

Remove old version of cck from repository.

parent 9904eac9
/* $Id$ */
div.fieldgroup .content {
padding-left:0;
padding-right:1em;
}
<?php
// $Id$
/**
* @file fieldgroup-simple.tpl.php
* Default theme implementation to display the a 'simple-styled' fieldgroup.
*
* Available variables:
* - $group_name - The group name
* - $group_name_css - The css-compatible group name.
* - $label - The group label
* - $description - The group description
* - $content - The group content
*
* @see template_preprocess_fieldgroup_simple()
*/
?>
<?php if ($content) : ?>
<div class="fieldgroup <?php print $group_name_css; ?>">
<?php if ($label): ?>
<h2><?php print $label; ?></h2>
<?php if ($description): ?>
<div class="description"><?php print $description; ?></div>
<?php endif; ?>
<?php endif; ?>
<div class="content"><?php print $content; ?></div>
</div>
<?php endif; ?>
/* $Id$ */
div.fieldgroup {
margin:.5em 0 1em 0;
}
div.fieldgroup .content {
padding-left:1em;/*LTR*/
}
; $Id$
name = Fieldgroup
description = Create display groups for CCK fields.
dependencies[] = cck
files[]=fieldgroup.module
package = CCK
core = 7.x
<?php
// $Id$
/**
* @file
* Implementation of hook_install().
*/
function fieldgroup_install() {
db_query("UPDATE {system} SET weight = 9 WHERE name = 'fieldgroup'");
}
/**
* Implementation of hook_uninstall().
*/
function fieldgroup_uninstall() {
}
/**
* Implementation of hook_schema.
*/
function fieldgroup_schema() {
$schema['field_group'] = array(
'fields' => array(
'group_type' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => 'standard'),
'bundle' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
'group_name' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
'label' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
'settings' => array('type' => 'text', 'size' => 'medium', 'not null' => TRUE),
'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
),
'primary key' => array('bundle', 'group_name'),
);
$schema['field_group_fields'] = array(
'fields' => array(
'bundle' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
'group_name' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
'field_name' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
),
'primary key' => array('bundle', 'group_name', 'field_name'),
);
return $schema;
}
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment