You are here

popup_onload.api.php in Popup On Load 8

Same filename and directory in other branches
  1. 7 popup_onload.api.php

Hooks provided by the Popup On Load module.

File

popup_onload.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the Popup On Load module.
 */

/**
 * Provide sort methods for popups.
 *
 * Must return an array of 'callback' => 'human readable name' pairs.
 * Each callback must return a single popup, which will be displayed.
 *
 * @see popup_onload_sort_methods()
 */
function hook_popup_onload_sort_methods() {
  return array(
    'mymodule_callback' => t('Sort method'),
  );
}

/**
 * Check popup display conditions.
 *
 * Should return TRUE or FALSE. If at least one FALSE value is returned
 * from any module, popup is not displayed.
 *
 * @see popup_onload_check_display_conditions()
 */
function hook_popup_onload_check_display_conditions($popup_onload) {
  return !popup_onload_check_time_cookie();
}

/**
 * Alter colorbox JS settings right before the popup is displayed.
 */
function hook_popup_onload_js_settings_alter(&$popup_settings, &$popup_onload) {
}

Functions

Namesort descending Description
hook_popup_onload_check_display_conditions Check popup display conditions.
hook_popup_onload_js_settings_alter Alter colorbox JS settings right before the popup is displayed.
hook_popup_onload_sort_methods Provide sort methods for popups.