| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 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 : /inetpub/wwwroot/business/pms/modules/ctools/ctools_custom_content/ |
Upload File : |
<?php
/**
* Schema for CTools custom content.
*/
function ctools_custom_content_schema() {
return ctools_custom_content_schema_1();
}
function ctools_custom_content_schema_1() {
$schema = array();
$schema['ctools_custom_content'] = array(
'description' => 'Contains exportable customized content for this site.',
'export' => array(
'identifier' => 'content',
'bulk export' => TRUE,
'primary key' => 'cid',
'api' => array(
'owner' => 'ctools',
'api' => 'ctools_content',
'minimum_version' => 1,
'current_version' => 1,
),
'create callback' => 'ctools_content_type_new',
),
'fields' => array(
'cid' => array(
'type' => 'serial',
'description' => 'A database primary key to ensure uniqueness',
'not null' => TRUE,
'no export' => TRUE,
),
'name' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'Unique ID for this content. Used to identify it programmatically.',
),
'admin_title' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'Administrative title for this content.',
),
'admin_description' => array(
'type' => 'text',
'size' => 'big',
'description' => 'Administrative description for this content.',
'object default' => '',
),
'category' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'Administrative category for this content.',
),
'settings' => array(
'type' => 'text',
'size' => 'big',
'description' => 'Serialized settings for the actual content to be used',
'serialize' => TRUE,
'object default' => array(),
),
),
'primary key' => array('cid'),
);
return $schema;
}
/**
* Implementation of hook_install().
*/
function ctools_custom_content_install() {
if (!db_table_exists('ctools_custom_content')) {
drupal_install_schema('ctools_custom_content');
}
}
/**
* Implementation of hook_uninstall().
*/
function ctools_custom_content_uninstall() {
drupal_uninstall_schema('ctools_custom_content');
}