function hansel_schema in Hansel breadcrumbs 8
Same name and namespace in other branches
- 7 hansel.install \hansel_schema()
Implements hook_schema().
File
- ./
hansel.install, line 26 - Hansel installation file
Code
function hansel_schema() {
$schema = array();
$schema['hansel_rule'] = array(
'fields' => array(
'rid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'pid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
),
'name' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'crumb_action' => array(
'type' => 'varchar',
'length' => 64,
'not null' => FALSE,
),
'crumb_action_arguments' => array(
'type' => 'text',
'not null' => FALSE,
),
),
'primary key' => array(
'rid',
),
);
$schema['hansel_rule_action_goto'] = array(
'fields' => array(
'rid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'destination' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'primary key' => array(
'rid',
),
);
$schema['hansel_rule_action_leave'] = array(
'fields' => array(
'rid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'restore_original' => array(
'type' => 'int',
'size' => 'small',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'primary key' => array(
'rid',
),
);
$schema['hansel_rule_action_switch'] = array(
'fields' => array(
'rid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'handler' => array(
'type' => 'varchar',
'length' => 64,
'not null' => TRUE,
),
'arguments' => array(
'type' => 'text',
'not null' => TRUE,
),
),
'primary key' => array(
'rid',
),
);
return $schema;
}