Same name and namespace in other branches
  1. 7.x-1.x exif.module \exif_help() 1 comment
  2. 8.x-1.x exif.module \exif_help() 1 comment

Implements hook_help().

File

./exif.module, line 19

Code

function exif_help($route_name, RouteMatchInterface $route_match) {
    switch ($route_name) {
        case 'help.page.exif':
            return ExifHelp::content();
        // Extra instructional information for the main settings page.
        case 'exif.config':
            $output = '<p>' . t('If a media type or content type has not been created for photographs, take a look at <a href=":url">the quick start page</a>.', [
                ':url' => Url::fromRoute('exif.helper')->toString(),
            ]) . '</p>';
            $output .= '<p>' . t('To have a sample of metadata content, take a look at <a href=":url">the sample page</a>.', [
                ':url' => Url::fromRoute('exif.sample')->toString(),
            ]) . '</p>';
            return $output;
    }
}