ajax_scroller.module in Ajax 6
File
plugins/scroller/ajax_scroller.moduleView source
<?php
/**
* AJAX Scroller Plugin
*
* @see http://drupal.org/project/ajax
* @see irc://freenode.net/#drupy
* @depends Drupal 6
* @author brendoncrawford
* @note This file uses a 79 character width limit.
*
*/
/**
* Implementation of hook_preprocess_hook().
*
* @param variables Assoc
* @return Bool
*
*/
function ajax_scroller_preprocess_page(&$variables) {
drupal_add_js(drupal_get_path('module', 'ajax_scroller') . '/ajax_scroller.js', 'theme');
return TRUE;
}
/**
* Ajax admin options callback
*/
function ajax_scroller_ajax_options(&$options) {
$options['scroller'] = array(
'#value' => t('Scroll Up After Submit'),
);
return TRUE;
}
Functions
Name | Description |
---|---|
ajax_scroller_ajax_options | Ajax admin options callback |
ajax_scroller_preprocess_page | Implementation of hook_preprocess_hook(). |