function filebrowser_install in Filebrowser 7.3
Same name and namespace in other branches
- 8.2 filebrowser.install \filebrowser_install()
- 8 filebrowser.install \filebrowser_install()
- 6.2 filebrowser.install \filebrowser_install()
- 6 filebrowser.install \filebrowser_install()
- 7.4 filebrowser.install \filebrowser_install()
- 7.2 filebrowser.install \filebrowser_install()
- 3.x filebrowser.install \filebrowser_install()
File
- ./
filebrowser.install, line 85 - filbrowser installation file.
Code
function filebrowser_install() {
$t = get_t();
node_types_rebuild();
$types = node_type_get_types();
// add body field to dir_listing content_type
node_add_body_field($types['dir_listing']);
// configure the bodyfield the way filebrowser wants it
$body_instance = field_info_instance('node', 'body', 'dir_listing');
$body_instance['label'] = $t('Description');
$body_instance['widget']['settings']['rows'] = 4;
field_update_instance($body_instance);
}