You are here

admin.inc in Signup 7

Same filename and directory in other branches
  1. 6.2 theme/admin.inc
  2. 6 theme/admin.inc

Theme functions for signup administration.

File

theme/admin.inc
View source
<?php

/**
 * @file
 * Theme functions for signup administration.
 */

/**
 * Controls the output of the signup administration overview page.
 *
 * This page is located at admin/content/signup, and allows site-wide signup
 * administrators to view signup-related information, close/open signups, etc,
 * for all signup-enabled nodes on the site.  There's a form to filter the
 * results by signup status, which is rendered at the top of the page by
 * default.
 *
 * @param array $variables
 *   An array of variables containing:
 *   - 'filter_status_form': HTML representation of the signup status filter
 *     form.
 *   - 'signup_admin_form': HTML representation of the main signup
 *     administration form.
 *
 * @return string
 *   Themed output for the signup administration overview page.
 */
function theme_signup_admin_page($variables) {
  $output = drupal_render($variables['filter_status_form']);
  $output .= drupal_render($variables['signup_admin_form']);
  return $output;
}

/**
 * @todo Please document this function.
 * @see http://drupal.org/node/1354
 */
function theme_signup_filter_status_form($variables) {
  $form = $variables['form'];
  return '<div class="container-inline">' . drupal_render_children($form) . '</div>';
}

Functions

Namesort descending Description
theme_signup_admin_page Controls the output of the signup administration overview page.
theme_signup_filter_status_form @todo Please document this function.