| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/modip/modules/trigger/ |
Upload File : |
<?php
// $Id: trigger.install,v 1.5.2.1 2009/01/06 15:46:38 goba Exp $
/**
* Implementation of hook_install().
*/
function trigger_install() {
// Create tables.
drupal_install_schema('trigger');
// Do initial synchronization of actions in code and the database.
actions_synchronize(actions_list());
}
/**
* Implementation of hook_uninstall().
*/
function trigger_uninstall() {
// Remove tables.
drupal_uninstall_schema('trigger');
}
/**
* Implementation of hook_schema().
*/
function trigger_schema() {
$schema['trigger_assignments'] = array(
'description' => 'Maps trigger to hook and operation assignments from trigger.module.',
'fields' => array(
'hook' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
'description' => 'Primary Key: The name of the internal Drupal hook upon which an action is firing; for example, nodeapi.',
),
'op' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'default' => '',
'description' => 'Primary Key: The specific operation of the hook upon which an action is firing: for example, presave.',
),
'aid' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
'description' => "Primary Key: Action's {actions}.aid.",
),
'weight' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'The weight of the trigger assignment in relation to other triggers.',
),
),
'primary key' => array('hook', 'op', 'aid'),
);
return $schema;
}