flickrfield.install in Flickr 7
Same filename and directory in other branches
The Flickr Field install file.
File
field/flickrfield.installView source
<?php
/**
* @file
* The Flickr Field install file.
*/
/**
* Implements hook_field_schema().
*/
function flickrfield_field_schema($field) {
$columns = array();
switch ($field['type']) {
case 'flickrfield':
$columns += array(
'id' => array(
'type' => 'varchar',
'length' => 64,
'not null' => FALSE,
'sortable' => TRUE,
),
'type' => array(
'type' => 'varchar',
'length' => 10,
'not null' => FALSE,
'sortable' => TRUE,
),
'nsid' => array(
'type' => 'varchar',
'length' => 64,
'not null' => FALSE,
'sortable' => TRUE,
),
);
break;
case 'flickrfield_photoset':
$columns = array(
'flickrid' => array(
'type' => 'varchar',
'length' => 64,
'not null' => FALSE,
'sortable' => TRUE,
),
);
break;
}
return array(
'columns' => $columns,
);
}
Functions
Name | Description |
---|---|
flickrfield_field_schema | Implements hook_field_schema(). |