You are here

simple_dialog_example.module in Simple Dialog 8

Same filename and directory in other branches
  1. 7 simple_dialog_example/simple_dialog_example.module

File

simple_dialog_example/simple_dialog_example.module
View source
<?php

/**
 * Implements hook_menu().
 */
function simple_dialog_example_menu() {
  $items['simple-dialog-example/target-page'] = array(
    'title' => 'Target Page',
    'route_name' => 'simple_dialog_example.target_page',
  );
  $items['simple-dialog-example/examples'] = array(
    'title' => 'Examples',
    'route_name' => 'simple_dialog_example.examples',
  );
  return $items;
}

/**
 * Implements hook_help().
 */
function simple_dialog_example_help($path, $arg) {
  switch ($path) {

    // Main module help for the block module
    case 'admin/help#simple_dialog_example':
      return '<p>' . t('This module provides a few examples of how to implement the simple dialog module. To get started go to: ') . l('simple-dialog-example/examples', 'simple-dialog-example/examples') . '</p>';
  }
}

Functions

Namesort descending Description
simple_dialog_example_help Implements hook_help().
simple_dialog_example_menu Implements hook_menu().