Active
Project:
Input Formats
Version:
6.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2012 at 07:06 UTC
Updated:
3 Feb 2012 at 07:55 UTC
Jump to comment: Most recent file
Hello.
This code makes troubles because it add export callback for none existed fields.
we have that troubles with simpletest clone module, because it use schema to create db copy sql requests.
/**
* Implementation of hook_schema_alter().
*/
function input_formats_schema_alter(&$schema) {
....
$schema['filter_formats']['fields']['format']['no export'] = TRUE;
$schema['filter_formats']['fields']['settings']['export callback'] = 'input_formats_export_settings';
$schema['filter_formats']['fields']['filters']['export callback'] = 'input_formats_export_filters';
we have not this fields in filter_formats schema
$schema['filter_formats'] = array(
'description' => 'Stores input formats: custom groupings of filters, such as Filtered HTML.',
'fields' => array(
'format' => array(
'type' => 'serial',
'not null' => TRUE,
'description' => 'Primary Key: Unique ID for format.',
),
'name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Name of the input format (Filtered HTML).',
),
'roles' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'A comma-separated string of roles; references {role}.rid.', // This is bad since you can't use joins, nor index.
),
'cache' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'size' => 'tiny',
'description' => 'Flag to indicate whether format is cachable. (1 = cachable, 0 = not cachable)',
),
),
'primary key' => array('format'),
'unique keys' => array('name' => array('name')),
);
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1426922-input_formats_schema-1.patch | 866 bytes | igor.ro |
Comments
Comment #1
igor.ro commentedHere is the patch