You are here

function filebrowser_install in Filebrowser 7.4

Same name and namespace in other branches
  1. 8.2 filebrowser.install \filebrowser_install()
  2. 8 filebrowser.install \filebrowser_install()
  3. 6.2 filebrowser.install \filebrowser_install()
  4. 6 filebrowser.install \filebrowser_install()
  5. 7.2 filebrowser.install \filebrowser_install()
  6. 7.3 filebrowser.install \filebrowser_install()
  7. 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);
}