You are here

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

Same name and namespace in other branches
  1. 8 asaf.module \asaf_menu()

File

./asaf.module, line 10

Code

function asaf_menu() {
  $items = array();
  $items['admin/config/system/asaf'] = array(
    'title' => 'Asaf (ajax submit for any form)',
    'access arguments' => array(
      'administer site configuration',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'asaf_admin_settings_form',
    ),
    'file' => 'asaf.admin.inc',
  );
  $items['system/ajax/asaf/pagecache'] = array(
    'title' => 'ASAF callback',
    'page callback' => 'asaf_pagecache_form_callback',
    'delivery callback' => 'ajax_deliver',
    'access callback' => TRUE,
    'theme callback' => 'ajax_base_page_theme',
    'type' => MENU_CALLBACK,
    'file' => 'asaf.pages.inc',
  );
  return $items;
}