function bootstrap_tour_db_step_table in Bootstrap Tour 7.2
Returns the table definition for the table which holds the tour steps.
Return value
array
2 calls to bootstrap_tour_db_step_table()
- bootstrap_tour_schema in ./
bootstrap_tour.install - Implements hook_schema().
- bootstrap_tour_update_7200 in ./
bootstrap_tour.install - Upgrade old 1.x tours to the new 2.x Entity format, then delete the old DB table.
File
- ./
bootstrap_tour.install, line 211
Code
function bootstrap_tour_db_step_table() {
return array(
'description' => t('Individual Bootstrap tour steps for Bootstrap Tours (many-to-one).'),
'fields' => array(
'bootstrap_tour_step_id' => array(
'description' => 'Primary ID field for the table. Not used for anything except internal lookups.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'no export' => TRUE,
),
'path' => array(
'description' => 'The path upon which the step should be displayed.',
'type' => 'varchar',
'length' => '255',
),
'selector' => array(
'description' => 'The CSS Selector to which the step should be attached.',
'type' => 'varchar',
'length' => '255',
),
'placement' => array(
'description' => 'Location of the popup.',
'type' => 'varchar',
'length' => '6',
),
'title' => array(
'description' => 'Title of the popup.',
'type' => 'varchar',
'length' => '255',
),
'content' => array(
'description' => 'Content of the popup.',
'type' => 'text',
'size' => 'big',
),
'content_text_format' => array(
'description' => 'The text format of the content field.',
'type' => 'varchar',
'length' => '255',
),
),
'primary key' => array(
'bootstrap_tour_step_id',
),
);
}