You are here

function view_custom_table_help in Views Custom Table 8

Same name and namespace in other branches
  1. 7 view_custom_table.module \view_custom_table_help()
  2. 9.0.x view_custom_table.module \view_custom_table_help()

Implements hook_help().

File

./view_custom_table.module, line 16
view_custom_table.module

Code

function view_custom_table_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.view_custom_table':
      return '<h3>' . t('About') . '</h3><p>' . t('Views Custom Table provide you interface to add your custom table data to views. as we know views is a very strong and powerfull pulgin to format data in different displys. Views Custom Table module add your data to views so you can use all wonderfull fetures for the views for custom table data. you can add as much as custom table you want in syatem. you can find link to add them in system and manage or view which are already added in the system on <a href="@views_custom_table">Views Custom Table</a> page.', [
        '@views_custom_table' => Url::fromRoute('view_custom_table.customtable'),
      ]) . '</p>' . '<p>' . t('It is very common that your custom table has the reference of a drupal entity, or relation with the drupal entity like "Node", "Taxonomy", "User", etc. Views Custom Table module provides you facility to add a relationship from custom table to drupal entity, to add relationship you must have an integer type column in your custom table, which refere main id of the entity, for example if your table has relation with the "Node" then it must have a column which refere to "Nid". Views Custom Table module also provide you facility to add relationship between two custom tables.') . '</p>' . '<h3>Notes for developer:</h3></p><ul><li>Each custom table must have a primary key.</li><li>The column which refere to a entity or an other custom table must be numeric.</li><li>Tables of extarnal database (other then default) can be relat to only those tables which are belongs to that database.</li></ul>';
  }
}