summaryrefslogtreecommitdiffstats
path: root/guideme.api.php
blob: 9d49b053f6d4c70b8341f20298a47ddfe32ee31f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php

/**
 * @file
 * Hook examples for documentation purposes.
 */

/**
 * Implements hook_guideme_path().
 *
 * Allows developers to register several guided paths.
 * Return an array ,
 */
function hook_guideme_path() {
  return array(
    'path 1' => array(
      'weight' => 100,
      'steps' => array(
        '<front>' => array(
          'title' => 'Title',
          'description' => 'Description here',
          'target' => '.submit',
        ),
        'node/add' => array(
          'title' => 'Title',
          'description' => 'Description here',
        ),
      ),
    ),
    'path 3' => array(
      'weight' => -10,
      'steps' => array(
        '<front>' => array(
          'title' => 'Title',
          'description' => 'Description here',
          'target' => '.submit',
        ),
      ),
    ),
  );
}