pmpapi_query_tools.install in Public Media Platform API Integration 7
Install, update and uninstall functions for the PMPAPI query tools module.
File
pmpapi_query_tools/pmpapi_query_tools.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the PMPAPI query tools module.
*/
/**
* Implements hook_schema().
*/
function pmpapi_query_tools_schema() {
$schema['pmpapi_query_tools_queries'] = array(
'description' => 'Saved PMP queries.',
'fields' => array(
'name' => array(
'description' => 'A unique query name.',
'type' => 'char',
'length' => 12,
'not null' => TRUE,
),
'options' => array(
'description' => 'Parameters for the query.',
'type' => 'text',
'size' => 'medium',
),
),
'primary key' => array(
'name',
),
);
return $schema;
}
Functions
Name | Description |
---|---|
pmpapi_query_tools_schema | Implements hook_schema(). |