function _filedepot_installed_fields in filedepot 7
Returns a structured array defining the fields created by this content type.
This is factored into this function so it can be used in both filedepot_install() and filedepot_uninstall().
Return value
An associative array specifying the fields we wish to add to our new node type.
2 calls to _filedepot_installed_fields()
- filedepot_install in ./
filedepot.install - Implements of hook_install().
- filedepot_uninstall in ./
filedepot.install - Implementation of hook_uninstall().
File
- ./
filedepot.install, line 93 - filedepot.install filedepot: File Management Module developed by Nextide www.nextide.ca
Code
function _filedepot_installed_fields() {
$t = get_t();
return array(
'filedepot_file' => array(
'field_name' => 'filedepot_folder_file',
'type' => 'file',
'active' => '1',
'locked' => '0',
'cardinality' => '-1',
'translatable' => '0',
'settings' => array(
'display_field' => 1,
'display_default' => 1,
'uri_scheme' => 'temporary',
),
),
'filedepot_folder_desc' => array(
'translatable' => '0',
'settings' => array(),
'field_name' => 'filedepot_folder_desc',
'type' => 'text_long',
'active' => '1',
'locked' => '0',
'cardinality' => '1',
),
);
}