Projet

Général

Profil

Révision 86fa8ee5

Ajouté par Assos Assos il y a environ 4 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/advanced_help/advanced_help.info
1
name = Advanced help
1
name = Advanced Help
2 2
description = Provide extended help and documentation.
3 3
core = 7.x
4 4

  
5

  
6
; Information added by Drupal.org packaging script on 2018-10-25
7
version = "7.x-1.5"
5
; Information added by Drupal.org packaging script on 2020-04-29
6
version = "7.x-1.6"
8 7
core = "7.x"
9 8
project = "advanced_help"
10
datestamp = "1540469884"
9
datestamp = "1588145925"
drupal7/sites/all/modules/advanced_help/advanced_help.install
9 9
 */
10 10
function advanced_help_uninstall() {
11 11
  variable_del('advanced_help_last_cron');
12
  $sam = variable_get('search_active_modules', NULL);
13
  if (!empty($sam)) {
14
    unset($sam['advanced_help']);
15
    variable_set('search_active_modules', $sam);
16
  }
12 17
}
13 18

  
14 19
/**
drupal7/sites/all/modules/advanced_help/advanced_help.module
113 113
 * Implements hook_menu_alter().
114 114
 */
115 115
function advanced_help_menu_alter(&$callbacks) {
116
  // We need to fix the menu item provided by search module to restrict access.
117
  $callbacks['search/advanced_help/%menu_tail']['access callback'] = 'user_access';
118
  $callbacks['search/advanced_help/%menu_tail']['access arguments'] = array('view advanced help index');
116
  // Check if it advanced_help is registered.
117
  $sam = variable_get('search_active_modules', NULL);
118
  if (!empty($sam['advanced_help']) && 'advanced_help' == $sam['advanced_help']) {
119
    // We need to fix the menu item provided by search module to restrict access.
120
    $callbacks['search/advanced_help/%menu_tail']['access callback'] = 'user_access';
121
    $callbacks['search/advanced_help/%menu_tail']['access arguments'] = array('view advanced help index');
122
  }
119 123
}
120 124

  
121 125
/**
......
714 718
            '<p>' .
715 719
            t('If you install the !module module, the text below will be filtered by the module, producing rich text.',
716 720
              array(
717
                '!module' => l(t('Markdown filter'),
721
                '!module' => l(t('Markdown'),
718 722
                  'https://www.drupal.org/project/markdown',
719 723
                  array('attributes' => array('title' => t('Link to project.'))))
720 724
              )) . '</p>';
drupal7/sites/all/modules/advanced_help/help.css
6 6
.advanced-help-topic h5 {font-size: 1.25em;}
7 7
.advanced-help-topic h6 {font-size: 1.1em;}
8 8

  
9
.advanced-help-topic h1,
10
.advanced-help-topic h2,
11
.advanced-help-topic h3,
12
.advanced-help-topic h4,
13
.advanced-help-topic h5,
14
.advanced-help-topic h6,
15
.advanced-help-topic dt {
16
  font-weight: bold;
17
  font-size: 1.1em;
18
}
19

  
20 9
.advanced-help-topic li h3,
21 10
.advanced-help-topic li h4,
22 11
.advanced-help-topic li h5,
drupal7/sites/all/modules/advanced_help/help/introduction.html
1
<p>The <strong>Advanced help</strong> module provides a framework that
1
<p>The <strong>Advanced Help</strong> module provides a framework that
2 2
allows help texts to be viewed as integrated into a Drupal
3 3
website.</p>
4 4

  
......
29 29

  
30 30
<p>May be integrated into <code>hook_help()</code> using companion
31 31
module
32
<a href="https://www.drupal.org/project/advanced_help_hint"><strong>Advanced help hint</strong></a>.</p>
32
<a href="https://www.drupal.org/project/advanced_help_hint"><strong>Advanced Help Hint</strong></a>.</p>
33 33

  
34 34
<h2 id="demo">Demonstration</h2>
35 35

  
36 36
<p>The project comes with a small demo module named
37
<strong>Advanced help example</strong> to demonstrate how it works.
37
<strong>Advanced Help Example</strong> to demonstrate how it works.
38 38
This example also shows how to make use of some of the css classes
39 39
provided.</p>
40 40

  
......
43 43

  
44 44
<p>For an example of translation of help text, see the
45 45
directory <code>translations/help/nb</code> in the <strong>Advanced
46
help example</strong> submodule. For translation instructions, see the
46
Help Example</strong> submodule. For translation instructions, see the
47 47
section named “<a href="&topic:advanced_help/translation&">Translating
48 48
advanced help</a>”.</p>
49 49

  
50 50
<h2 id="theme">Theme</h2>
51 51

  
52
<p>The <strong>Advanced help</strong> and
53
<strong>Advanced help example</strong> modules implements
52
<p>The <strong>Advanced Help</strong> and
53
<strong>Advanced Help Example</strong> modules implements
54 54
<code>hook_admin_paths_alter()</code> to render the help
55 55
texts rendered using the site's administrative theme.
56 56
The <code>help.css</code> provided is created with the
......
71 71
</pre>
72 72

  
73 73
<p>You may attach your own custom css to any project that
74
uses <strong>Advanced help</strong> to provide help.</p>
74
uses <strong>Advanced Help</strong> to provide help.</p>
75 75

  
76 76

  
drupal7/sites/all/modules/advanced_help/help/translation.html
1
<p>To translate a help-file indexed by <strong>Advanced help</strong>,
1
<p>To translate a help-file indexed by <strong>Advanced Help</strong>,
2 2
first create a directory
3 3
<code>translations/help/<em>language</em></code> in the project's 
4 4
root directory. The <em>language</em>  is the language code that
......
29 29
<p>If a topic is not translated, the default (untranslated) version
30 30
will be shown instead.</p>
31 31

  
32
<h2>Translating Advanced help's help files</h2>
32
<h2>Translating Advanced Help's help files</h2>
33 33

  
34 34
<p>If you want to help with the translation of
35
<strong>Advanced help</strong> help texts for a particular language, look for an issue named named “Translation to XXX” (where
35
<strong>Advanced Help</strong> help texts for a particular language, look for an issue named named “Translation to XXX” (where
36 36
“XXX” is the language you want to translate the help texts to) in the <a href="https://www.drupal.org/project/issues/advanced_help">issue queue for Advanced help</a>.
37 37
If such an issue does not exist, please can create it.
38 38
Choose <em>Category</em>   “Task”,
drupal7/sites/all/modules/advanced_help/help/using-advanced-help.html
1
<p>The <strong>Advanced help</strong> module provides a framework that
1
<p>The <strong>Advanced Help</strong> module provides a framework that
2 2
allows module and theme developers integrate help texts in a Drupal
3 3
site.</p>
4 4

  
......
20 20

  
21 21
<h2 id="ah_crehlp">Creating help</h2>
22 22

  
23
<p>Modules and themes utilizing <strong>Advanced help</strong> should
23
<p>Modules and themes utilizing <strong>Advanced Help</strong> should
24 24
create a subdirectory named <code>help</code> inside their own main
25 25
directory. Place the file
26 26
<em>MODULENAME</em>.help.ini (resp. <em>THEMENAME</em>.help.ini) in this subdirectory.
......
113 113
<div class="help-img-caption" style="max-width:180px">Question mark help icon</div>
114 114
</div>
115 115

  
116
<p>See the source code of demo module <strong>Advanced help
117
example</strong> for link examples.</p>
116
<p>See the source code of demo module <strong>Advanced Help
117
Example</strong> for link examples.</p>
118 118

  
119 119
<p>You may link to other help topics inside your HTML help file using
120 120
this format:</p>
121 121

  
122 122
<pre>
123
&lt;a href="&amp;topic:module/topic&amp;"&gt;topic&lt;/a&gt;
123
&lt;a href="&amp;topic:moduleshortname/moduletopic&amp;"&gt;anchortext&lt;/a&gt;
124
&lt;a href="&amp;topic:help_example/lorem&amp;"&gt;Lorem ipsum&lt;/a&gt;
124 125
</pre>
125 126

  
127
<p>The second line show how to link to a help page provided by the
128
module with shortname <code>help_example</code>, with the
129
topic <code>lorem</code>.</p>
130

  
126 131
<p>To reference items within the help directory, such as images you wish to embed  within the help text, use:</p>
127 132

  
128 133
<pre>
drupal7/sites/all/modules/advanced_help/help_example/help_example.info
1
name = Advanced help example
1
name = Advanced Help Example
2 2
description = A example help module to demonstrate the advanced help module.
3 3
core = 7.x
4 4
dependencies[] = advanced_help
5 5

  
6
; Information added by Drupal.org packaging script on 2018-10-11
7
version = "7.x-1.4+6-dev"
6
; Information added by Drupal.org packaging script on 2020-04-29
7
version = "7.x-1.6"
8 8
core = "7.x"
9 9
project = "advanced_help"
10
datestamp = "1539281584"
11

  
12
; Information added by Drupal.org packaging script on 2018-10-25
13
version = "7.x-1.5"
14
core = "7.x"
15
project = "advanced_help"
16
datestamp = "1540469884"
10
datestamp = "1588145925"
drupal7/sites/all/modules/advanced_help/translations/help/nb/using-advanced-help.html
89 89
<p>Inne i en hjelpe-fil kan du lenke til andre hjelpe-emner ved å
90 90
bruke dette formatet:</p>
91 91
<pre>
92
&lt;a href="&amp;topic:module/topic&amp;"&gt;topic&lt;/a&gt;
92
&lt;a href="&amp;topic:moduleshortname/moduletopic&amp;"&gt;anchortext&lt;/a&gt;
93
&lt;a href="&amp;topic:help_example/lorem&amp;"&gt;Lorem ipsum&lt;/a&gt;
93 94
</pre>
95

  
96
<p>Den andre linja viser hvordan du lenker til en hjelpeside
97
tilhørende modulen med det korte navnet <code>help_example</code>, der
98
hjelpe-emne er <code>lorem</code>.</p>
99

  
94 100
<p>Ved å bruke dette formatet i stedet for standard-lenker vil sprettopp-status være konsistent når man trykker på lenker.</p>
95 101

  
96 102
<p>For å referere til andre elementer som befinner seg i

Formats disponibles : Unified diff