You are here

function asaf_example_intro in Asaf (ajax submit for any form) 7

Same name and namespace in other branches
  1. 8 modules/asaf_example/asaf_example.module \asaf_example_intro()
1 string reference to 'asaf_example_intro'
asaf_example_menu in modules/asaf_example/asaf_example.module
Implements hook_menu().

File

modules/asaf_example/asaf_example.module, line 106
AJAX Examples module file with basic examples.

Code

function asaf_example_intro() {
  $page = array();
  $page['markup'] = array(
    '#markup' => t('The AJAX example module provides many examples of AJAX including forms, links, and AJAX commands.'),
  );
  $page['examples'] = array(
    '#theme' => 'asaf_examples',
    '#examples' => array(
      array(
        'name' => t('ASAF GUI'),
        'description' => t('Description for gui group'),
        'items' => array(
          l(t('Asaf admin page'), 'admin/config/system/asaf'),
          l(t('Simplest'), 'examples/asaf_example/gui/simplest'),
          l(t('Buttons'), 'examples/asaf_example/gui/buttons'),
        ),
      ),
      array(
        'name' => t('ASAF API'),
        'description' => t('Description for api group'),
        'items' => array(
          l(t('Simplest'), 'examples/asaf_example/api/simplest'),
          l(t('Needed files'), 'examples/asaf_example/api/needed-files'),
          l(t('Depended Elements'), 'examples/asaf_example/api/depended-elements'),
          l(t('Renderable Areas'), 'examples/asaf_example/api/areas'),
        ),
      ),
    ),
  );
  return $page;
}