hook_filemanager_areas

Definition

hook_filemanager_areas()
filemanager/doc/filemanager.php, line 31

Description

Define file areas this module uses.

This hook allows file API using modules to define new file areas which will have their own size limits.

This hook should return an array of associative arrays containing area information

The following fields must be defined in the area information array

-area - This is the name of the area used programtically in the module. -name - This is the display name of the area for site admins. -description - This is a description for site admins of what this area holds.

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

<?php
function hook_filemanager_areas() {
  return array(
    array(
      'area' => 'general',
      'name' => t('General'),
      'description' => t('All files not specifically stored in another area.')
    )
  );
}
?>