job_scheduler_trigger.install in Job Scheduler 7.2
Install, update and uninstall functions for the Job Scheduler Trigger.
File
modules/job_scheduler_trigger/job_scheduler_trigger.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the Job Scheduler Trigger.
*/
/**
* Implements hook_schema().
*/
function job_scheduler_trigger_schema() {
$schema['job_scheduler_trigger'] = array(
'description' => 'Schedule of triggers to be created.',
'fields' => array(
'trid' => array(
'description' => 'Primary Key: unique trigger id.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'hook' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
'description' => 'Primary Key: The name of the internal Drupal hook; for example, job_scheduer_100.',
),
'title' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Title for the trigger.',
),
'crontab' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => 'Crontab line in *NIX format.',
),
'status' => array(
'description' => 'Boolean indicating whether the trigger is active.',
'type' => 'int',
'not null' => TRUE,
'default' => 1,
),
'last' => array(
'type' => 'int',
'unsigned' => TRUE,
'default' => 0,
'not null' => TRUE,
'description' => 'Timestamp when it was lat triggered.',
),
),
'primary key' => array(
'trid',
),
);
return $schema;
}
Functions
Name![]() |
Description |
---|---|
job_scheduler_trigger_schema | Implements hook_schema(). |