array( 'label' => t('Image'), ), ); } /** * Perform alterations on file types. * * @param $info * Array of information on file types exposed by hook_file_type_info() * implementations. */ function hook_file_type_info_alter(&$info) { // @todo Add example. } /** * @todo Add documentation. * * Note: This is not really a hook. The function name is manually specified via * 'claim callback' in hook_file_type_info(), with this recommended * callback name pattern. */ function hook_file_type_TYPE_claim($file, $type) { } /** * @todo Add documentation. * * Note: This is not really a hook. The function name is manually specified via * 'default view callback' in hook_file_type_info(), with this recommended * callback name pattern. */ function hook_file_type_TYPE_default_view($file, $view_mode, $langcode) { } /** * Define file formatters. * * @return * An array whose keys are file formatter names and whose values are arrays * describing the formatter. * * @todo Document key/value pairs that comprise a formatter. * * @see hook_file_formatter_info_alter() */ function hook_file_formatter_info() { // @todo Add example. } /** * Perform alterations on file formatters. * * @param $info * Array of information on file formatters exposed by * hook_file_formatter_info() implementations. */ function hook_file_formatter_info_alter(&$info) { // @todo Add example. } /** * @todo Add documentation. * * Note: This is not really a hook. The function name is manually specified via * 'view callback' in hook_file_formatter_info(), with this recommended callback * name pattern. */ function hook_file_formatter_FORMATTER_view($file, $display, $langcode) { } /** * @todo Add documentation. * * Note: This is not really a hook. The function name is manually specified via * 'settings callback' in hook_file_formatter_info(), with this recommended * callback name pattern. */ function hook_file_formatter_FORMATTER_settings($form, &$form_state, $settings) { } /** * @todo Add documentation. */ function hook_file_displays_alter($displays, $file, $view_mode) { } /** * @todo Add documentation. */ function hook_file_view($file, $view_mode, $langcode) { } /** * @todo Add documentation. */ function hook_file_view_alter($build, $type) { }