You are here

fasttoggle.inc in Fasttoggle 8.2

Same filename and directory in other branches
  1. 6 fasttoggle.inc
  2. 7 fasttoggle.inc

Provides common routines and declarations for Fasttoggle.

File

fasttoggle.inc
View source
<?php

/**
 * @file
 * Provides common routines and declarations for Fasttoggle.
 */

/**
 * Displays the current state of a setting (e.g. "published", "active").
 */
define('FASTTOGGLE_LABEL_STATUS', 0x0);

/**
 * Displays the action that will be performed (e.g. "unpublish", "block").
 */
define('FASTTOGGLE_LABEL_ACTION', 0x1);

/**
 * Read custom strings from settings.php
 */
define('FASTTOGGLE_LABEL_CUSTOM', 0x2);

/**
 * Return a link in the resulting HTML format.
 */
define('FASTTOGGLE_FORMAT_HTML', 0x0);

/**
 * Return a link as the structure passed to l().
 */
define('FASTTOGGLE_FORMAT_LINK_ARRAY', 0x1);

/**
 * Return a link as the structure for a form build.
 */
define('FASTTOGGLE_FORMAT_FORM', 0x2);
define('FASTTOGGLE_ACCESS_DENIED', -1);
define('FASTTOGGLE_ACCESS_UNDECIDED', 0);
define('FASTTOGGLE_ACCESS_ALLOWED', 1);

Constants

Namesort descending Description
FASTTOGGLE_ACCESS_ALLOWED
FASTTOGGLE_ACCESS_DENIED
FASTTOGGLE_ACCESS_UNDECIDED
FASTTOGGLE_FORMAT_FORM Return a link as the structure for a form build.
FASTTOGGLE_FORMAT_HTML Return a link in the resulting HTML format.
FASTTOGGLE_FORMAT_LINK_ARRAY Return a link as the structure passed to l().
FASTTOGGLE_LABEL_ACTION Displays the action that will be performed (e.g. "unpublish", "block").
FASTTOGGLE_LABEL_CUSTOM Read custom strings from settings.php
FASTTOGGLE_LABEL_STATUS Displays the current state of a setting (e.g. "published", "active").