function opengraph_meta_schema in Open Graph meta tags 7
Same name and namespace in other branches
- 6 opengraph_meta.install \opengraph_meta_schema()
File
- ./
opengraph_meta.install, line 33
Code
function opengraph_meta_schema() {
$schema[OPENGRAPH_META_TABLE] = array(
'description' => 'Stores Open Graph meta tag info useful for when sharing nodes on social networking sites, e.g. Facebook.',
'fields' => array(
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
OpenGraphMeta::TITLE => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
OpenGraphMeta::DESCRIPTION => array(
'type' => 'text',
'not null' => TRUE,
'size' => 'big',
),
OpenGraphMeta::IMAGE => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
OpenGraphMeta::TYPE => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
OpenGraphMeta::__OPTIONAL_DB_FIELD => array(
'type' => 'text',
'not null' => FALSE,
'serialize' => TRUE,
),
),
'primary key' => array(
'nid',
),
);
return $schema;
}