code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php /** * @file * Page callbacks for the taxonomy module. */ /** * Menu callback; displays all nodes associated with a term. * * @param $term * The taxonomy term. * @return * The page content. */ function taxonomy_term_page($term) { // If there is a menu link to this term, the link becomes the last ...
PHP
<?php /** * @file * Builds placeholder replacement tokens for taxonomy terms and vocabularies. */ /** * Implements hook_token_info(). */ function taxonomy_token_info() { $types['term'] = array( 'name' => t("Taxonomy terms"), 'description' => t("Tokens related to taxonomy terms."), 'needs-data' => '...
PHP
<?php /** * @file * Hooks provided by the Taxonomy module. */ /** * @addtogroup hooks * @{ */ /** * Act on taxonomy vocabularies when loaded. * * Modules implementing this hook can act on the vocabulary objects before they * are returned by taxonomy_vocabulary_load_multiple(). * * @param $vocabulary * ...
PHP
<?php /** * @file * Default theme implementation to display a term. * * Available variables: * - $name: (deprecated) The unsanitized name of the term. Use $term_name * instead. * - $content: An array of items for the content of the term (fields and * description). Use render($content) to print them all, or...
PHP
<?php /** * @file * Field module functionality for the File module. */ /** * Implements hook_field_info(). */ function file_field_info() { return array( 'file' => array( 'label' => t('File'), 'description' => t('This field stores the ID of a file as an integer value.'), 'settings' => arra...
PHP
<?php /** * @file * Hooks for file module. */ /** * Control download access to files. * * The hook is typically implemented to limit access based on the entity the * file is referenced, e.g., only users with access to a node should be allowed * to download files attached to that node. * * @param array $file...
PHP
<?php /** * @file * Default template for admin toolbar. * * Available variables: * - $classes: String of classes that can be used to style contextually through * CSS. It can be manipulated through the variable $classes_array from * preprocess functions. The default value has the following: * - toolbar: T...
PHP
<?php /** * @file * Default theme implementation to present profile categories (groups of * profile items). * * Categories are defined when configuring user profile fields for the site. * It can also be defined by modules. All profile items for a category will be * output through the $profile_items variable. *...
PHP
<?php /** * @file * Default theme implementation to present profile items (values from user * account profile fields or modules). * * This template is used to loop through and render each field configured * for the user's account. It can also be the data from modules. The output is * grouped by categories. * ...
PHP
<?php /** * @file * Hooks provided by the User module. */ /** * @addtogroup hooks * @{ */ /** * Act on user objects when loaded from the database. * * Due to the static cache in user_load_multiple() you should not use this * hook to modify the user properties returned by the {users} table itself * since t...
PHP
<?php /** * @file * Default theme implementation to present a picture configured for the * user's account. * * Available variables: * - $user_picture: Image set by the user or the site's default. Will be linked * depending on the viewer's permission to view the user's profile page. * - $account: Array of acc...
PHP
<?php /** * @file * Default theme implementation to present all user profile data. * * This template is used when viewing a registered member's profile page, * e.g., example.com/user/123. 123 being the users ID. * * Use render($user_profile) to print all profile items, or print a subset * such as render($user_...
PHP
<?php /** * @file * User page callback file for the user module. */ /** * Menu callback; Retrieve a JSON object containing autocomplete suggestions for existing users. */ function user_autocomplete($string = '') { $matches = array(); if ($string) { $result = db_select('users')->fields('users', array('nam...
PHP
<?php /** * @file * Admin page callback file for the user module. */ /** * Page callback: Generates the appropriate user administration form. * * This function generates the user registration, multiple user cancellation, * or filtered user list admin form, depending on the argument and the POST * form values....
PHP
<?php /** * @file * Builds placeholder replacement tokens for user-related data. */ /** * Implements hook_token_info(). */ function user_token_info() { $types['user'] = array( 'name' => t('Users'), 'description' => t('Tokens related to individual user accounts.'), 'needs-data' => 'user', ); $ty...
PHP
<?php /** * @file * Code required only when comparing available updates to existing data. */ /** * Fetches an array of installed and enabled projects. * * This is only responsible for generating an array of projects (taking into * account projects that include more than one module or theme). Other * informati...
PHP
<?php /** * @file * Code required only for the update status settings form. */ /** * Form constructor for the update settings form. * * @see update_settings_validate() * @see update_settings_submit() * @ingroup forms */ function update_settings($form) { $form['update_check_frequency'] = array( '#type' ...
PHP
<?php /** * @file * Administrative screens and processing functions of the Update Manager module. * * This allows site administrators with the 'administer software updates' * permission to either upgrade existing projects, or download and install new * ones, so long as the killswitch setting ('allow_authorize_op...
PHP
<?php /** * @file * Code required only when fetching information about available updates. */ /** * Page callback: Checks for updates and displays the update status report. * * Manually checks the update status without the use of cron. * * @see update_menu() */ function update_manual_status() { _update_refr...
PHP
<?php /** * @file * Hooks provided by the Update Manager module. */ /** * @addtogroup hooks * @{ */ /** * Alter the list of projects before fetching data and comparing versions. * * Most modules will never need to implement this hook. It is for advanced * interaction with the Update Manager module. The pri...
PHP
<?php /** * @file * Callbacks and related functions invoked by authorize.php to update projects. * * We use the Batch API to actually update each individual project on the site. * All of the code in this file is run at a low bootstrap level (modules are not * loaded), so these functions cannot assume access to t...
PHP
<?php /** * @file * Code required only when rendering the available updates report. */ /** * Page callback: Generates a page about the update status of projects. * * @see update_menu() */ function update_status() { if ($available = update_get_available(TRUE)) { module_load_include('inc', 'update', 'updat...
PHP
<?php /** * @file * Hooks provided by the RDF module. */ /** * @addtogroup hooks * @{ */ /** * Allow modules to define RDF mappings for field bundles. * * Modules defining their own field bundles can specify which RDF semantics * should be used to annotate these bundles. These mappings are then used for *...
PHP
<?php /** * @file * Page callback file for the blog module. */ /** * Menu callback; displays a Drupal page containing recent blog entries of a given user. */ function blog_page_user($account) { global $user; drupal_set_title($title = t("@name's blog", array('@name' => format_username($account))), PASS_THROU...
PHP
<?php /** * @file * Administrative page callbacks for the path module. */ /** * Returns a listing of all defined URL aliases. * * When filter key passed, perform a standard search on the given key, * and return the list of matching URL aliases. */ function path_admin_overview($keys = NULL) { // Add the filt...
PHP
<?php /** * @file * Hooks provided by the Path module. */ /** * @addtogroup hooks * @{ */ /** * Respond to a path being inserted. * * @param $path * An associative array containing the following keys: * - source: The internal system path. * - alias: The URL alias. * - pid: Unique path alias iden...
PHP
<?php /** * @file * Default theme implementation to provide an HTML container for comments. * * Available variables: * - $content: The array of content-related elements for the node. Use * render($content) to print them all, or * print a subset such as render($content['comment_form']). * - $classes: String...
PHP
<?php /** * @file * Default theme implementation for comments. * * Available variables: * - $author: Comment author. Can be link or plain text. * - $content: An array of comment items. Use render($content) to print them all, or * print a subset such as render($content['field_example']). Use * hide($content...
PHP
<?php /** * @file * Hooks provided by the Comment module. */ /** * @addtogroup hooks * @{ */ /** * The comment passed validation and is about to be saved. * * Modules may make changes to the comment before it is saved to the database. * * @param $comment * The comment object. */ function hook_comment_...
PHP
<?php /** * @file * Admin page callbacks for the comment module. */ /** * Menu callback; present an administrative comment listing. */ function comment_admin($type = 'new') { $edit = $_POST; if (isset($edit['operation']) && ($edit['operation'] == 'delete') && isset($edit['comments']) && $edit['comments']) {...
PHP
<?php /** * @file * User page callbacks for the comment module. */ /** * This function is responsible for generating a comment reply form. * There are several cases that have to be handled, including: * - replies to comments * - replies to nodes * - attempts to reply to nodes that can no longer accept c...
PHP
<?php /** * @file * Builds placeholder replacement tokens for comment-related data. */ /** * Implements hook_token_info(). */ function comment_token_info() { $type = array( 'name' => t('Comments'), 'description' => t('Tokens for comments posted on the site.'), 'needs-data' => 'comment', ); // ...
PHP
<?php /** * @file * Default theme implementation for a single node in a printer-friendly outline. * * @see book-node-export-html.tpl.php * Where it is collected and printed out. * * Available variables: * - $depth: Depth of the current node inside the outline. * - $title: Node title. * - $content: Node conte...
PHP
<?php /** * @file * Default theme implementation to navigate books. * * Presented under nodes that are a part of book outlines. * * Available variables: * - $tree: The immediate children of the current node rendered as an unordered * list. * - $current_depth: Depth of the current node within the book outlin...
PHP
<?php /** * @file * User page callbacks for the book module. */ /** * Menu callback: Prints a listing of all books. * * @return string * A HTML-formatted string with the listing of all books content. * * @see book_menu() */ function book_render() { $book_list = array(); foreach (book_get_books() as $b...
PHP
<?php /** * @file * Default theme implementation for printed version of book outline. * * Available variables: * - $title: Top level node title. * - $head: Header tags. * - $language: Language code. e.g. "en" for english. * - $language_rtl: TRUE or FALSE depending on right to left language scripts. * - $base_...
PHP
<?php /** * @file * Default theme implementation for rendering book outlines within a block. * * This template is used only when the block is configured to "show block on all * pages", which presents multiple independent books on all pages. * * Available variables: * - $book_menus: Array of book outlines keyed...
PHP
<?php /** * @file * Administration page callbacks for the Book module. */ /** * Returns an administrative overview of all books. * * @return string * A HTML-formatted string with the administrative page content. * * @see book_menu() */ function book_admin_overview() { $rows = array(); $headers = arra...
PHP
<?php /** * @file * OpenID utility functions. */ /** * Diffie-Hellman Key Exchange Default Value. * * This is used to establish an association between the Relying Party and the * OpenID Provider. * * See RFC 2631: http://www.ietf.org/rfc/rfc2631.txt */ define('OPENID_DH_DEFAULT_MOD', '1551728981814736974712...
PHP
<?php /** * @file * Hooks provided by the OpenID module. */ /** * @addtogroup hooks * @{ */ /** * Allow modules to modify the OpenID request parameters. * * @param $op * The operation to be performed. * Possible values: * - request: Modify parameters before they are sent to the OpenID provider. * ...
PHP
<?php /** * @file * User page callbacks for the openid module. */ /** * Menu callback; Process an OpenID authentication. */ function openid_authentication_page() { $result = openid_complete(); switch ($result['status']) { case 'success': return openid_authentication($result); case 'failed': ...
PHP
<?php /** * @file * Hooks provided by the Node module. */ /** * @defgroup node_api_hooks Node API Hooks * @{ * Functions to define and modify content types. * * Each content type is maintained by a primary module, which is either * node.module (for content types created in the user interface) or the module ...
PHP
<?php /** * @file * Page callbacks for adding, editing, deleting, and revisions management for content. */ /** * Menu callback; presents the node editing form. */ function node_page_edit($node) { $type_name = node_type_get_name($node); drupal_set_title(t('<em>Edit @type</em> @title', array('@type' => $type_n...
PHP
<?php /** * @file * Default theme implementation to display a node. * * Available variables: * - $title: the (sanitized) title of the node. * - $content: An array of node items. Use render($content) to print them all, * or print a subset such as render($content['field_example']). Use * hide($content['field...
PHP
<?php /** * @file * Content type editing user interface. */ /** * Displays the content type admin overview page. */ function node_overview_types() { $types = node_type_get_types(); $names = node_type_get_names(); $field_ui = module_exists('field_ui'); $header = array(t('Name'), array('data' => t('Operati...
PHP
<?php /** * @file * Content administration and module settings UI. */ /** * Menu callback: confirm rebuilding of permissions. * * @see node_configure_rebuild_confirm_submit() * @see node_menu() * @ingroup forms */ function node_configure_rebuild_confirm() { return confirm_form(array(), t('Are you sure you ...
PHP
<?php /** * @file * Builds placeholder replacement tokens for node-related data. */ /** * Implements hook_token_info(). */ function node_token_info() { $type = array( 'name' => t('Nodes'), 'description' => t('Tokens related to individual content items, or "nodes".'), 'needs-data' => 'node', ); ...
PHP
<?php /** * @file * Queue functionality. */ /** * @defgroup queue Queue operations * @{ * Queue items to allow later processing. * * The queue system allows placing items in a queue and processing them later. * The system tries to ensure that only one consumer can process an item. * * Before a queue can be...
PHP
<?php /** * @file * Default theme implementation to display a region. * * Available variables: * - $content: The content for this region, typically blocks. * - $classes: String of classes that can be used to style contextually through * CSS. It can be manipulated through the variable $classes_array from * ...
PHP
<?php /** * @file * Hooks provided by the base system for language support. */ /** * @addtogroup hooks * @{ */ /** * Allows modules to act after language initialization has been performed. * * This is primarily needed to provide translation for configuration variables * in the proper bootstrap phase. Varia...
PHP
<?php /** * @file * GD2 toolkit for image manipulation within Drupal. */ /** * @addtogroup image * @{ */ /** * Retrieve settings for the GD2 toolkit. */ function image_gd_settings() { if (image_gd_check_settings()) { $form['status'] = array( '#markup' => t('The GD toolkit is installed and working...
PHP
<?php /** * @file * Builds placeholder replacement tokens system-wide data. * * This file handles tokens for the global 'site' token type, as well as * 'date' and 'file' tokens. */ /** * Implements hook_token_info(). */ function system_token_info() { $types['site'] = array( 'name' => t("Site information...
PHP
<?php /** * @file * Drupal core implementations of MailSystemInterface. */ /** * The default Drupal mail backend using PHP's mail function. */ class DefaultMailSystem implements MailSystemInterface { /** * Concatenate and wrap the e-mail body for plain-text mails. * * @param $message * A message ...
PHP
<?php /** * @file * Subclasses of the Updater class to update Drupal core knows how to update. * At this time, only modules and themes are supported. */ /** * Class for updating modules using FileTransfer classes via authorize.php. */ class ModuleUpdater extends Updater implements DrupalUpdaterInterface { /*...
PHP
<?php /** * @file * Default theme implementation to display the basic html structure of a single * Drupal page. * * Variables: * - $css: An array of CSS files for the current page. * - $language: (object) The language the site is being displayed in. * $language->language contains its textual representation. ...
PHP
<?php /** * @file * Default theme implementation to display a single Drupal page while offline. * * All the available variables are mirrored in html.tpl.php and page.tpl.php. * Some may be blank but they are provided for consistency. * * @see template_preprocess() * @see template_preprocess_maintenance_page() ...
PHP
<?php /** * @file * Hooks provided by Drupal core and the System module. */ /** * @addtogroup hooks * @{ */ /** * Defines one or more hooks that are exposed by a module. * * Normally hooks do not need to be explicitly defined. However, by declaring a * hook explicitly, a module may define a "group" for it....
PHP
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * File::CSV * * PHP versions 4 and 5 * * Copyright (c) 1997-2008, * Vincent Blavet <vincent@phpconcept.net> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted prov...
PHP
<?php /** * @file * Default theme implementation to display a single Drupal page. * * The doctype, html, head and body tags are not in this template. Instead they * can be found in the html.tpl.php template in this directory. * * Available variables: * * General utility variables: * - $base_path: The base UR...
PHP
<?php /** * @file * Admin page callbacks for the system module. */ /** * Menu callback; Provide the administration overview page. */ function system_admin_config_page() { // Check for status report errors. if (system_status(TRUE) && user_access('administer site configuration')) { drupal_set_message(t('On...
PHP
<?php /** * @file * Callbacks provided by the form system. */ /** * @addtogroup callbacks * @{ */ /** * Perform a single batch operation. * * Callback for batch_set(). * * @param $MULTIPLE_PARAMS * Additional parameters specific to the batch. These are specified in the * array passed to batch_set()....
PHP
<?php /** * @defgroup themeable Default theme implementations * @{ * Functions and templates for the user interface to be implemented by themes. * * Drupal's presentation layer is a pluggable system known as the theme * layer. Each theme can take control over most of Drupal's output, and * has complete control ...
PHP
<?php /** * @file * Archiver implementations provided by the system module. */ /** * Archiver for .tar files. */ class ArchiverTar implements ArchiverInterface { /** * The underlying Archive_Tar instance that does the heavy lifting. * * @var Archive_Tar */ protected $tar; public function __co...
PHP
<?php /** * @file * User page callbacks for the Translation module. */ /** * Page callback: Displays a list of a node's translations. * * @param $node * A node object. * * @return * A render array for a page containing a list of content. * * @see translation_menu() */ function translation_node_overvi...
PHP
<?php /** * @file * Hooks provided by the Help module. */ /** * @addtogroup hooks * @{ */ /** * Provide online user help. * * By implementing hook_help(), a module can make documentation available to * the user for the module as a whole, or for specific paths. Help for * developers should usually be prov...
PHP
<?php /** * @file * Admin page callbacks for the help module. */ /** * Menu callback; prints a page listing a glossary of Drupal terminology. */ function help_main() { // Add CSS drupal_add_css(drupal_get_path('module', 'help') . '/help.css'); $output = '<h2>' . t('Help topics') . '</h2><p>' . t('Help is a...
PHP
<?php /** * @file * Hooks provided by Contextual module. */ /** * @addtogroup hooks * @{ */ /** * Alter a contextual links element before it is rendered. * * This hook is invoked by contextual_pre_render_links(). The renderable array * of #type 'contextual_links', containing the entire contextual links dat...
PHP
<?php /** * @file * Administrative interface for custom field type creation. */ /** * Menu callback; lists all defined fields for quick reference. */ function field_ui_fields_list() { $instances = field_info_instances(); $field_types = field_info_field_types(); $bundles = field_info_bundles(); $modules ...
PHP
<?php /** * @file * Hooks provided by the Field UI module. */ /** * @addtogroup field_types * @{ */ /** * Add settings to a field settings form. * * Invoked from field_ui_field_settings_form() to allow the module defining the * field to add global settings (i.e. settings that do not depend on the bundle *...
PHP
<?php /** * @file * Displays a forum. * * May contain forum containers as well as forum topics. * * Available variables: * - $forums: The forums to display (as processed by forum-list.tpl.php). * - $topics: The topics to display (as processed by forum-topic-list.tpl.php). * - $forums_defined: A flag to indica...
PHP
<?php /** * @file * Displays a list of forum topics. * * Available variables: * - $header: The table header. This is pre-generated with click-sorting * information. If you need to change this, see * template_preprocess_forum_topic_list(). * - $pager: The pager to display beneath the table. * - $topics: An...
PHP
<?php /** * @file * Displays a list of forums and containers. * * Available variables: * - $forums: An array of forums and containers to display. It is keyed to the * numeric IDs of all child forums and containers. Each $forum in $forums * contains: * - $forum->is_container: TRUE if the forum can contain...
PHP
<?php /** * @file * Formats a forum post submission string. * * The submission string indicates when and by whom a topic was submitted. * * Available variables: * - $author: The author of the post. * - $time: How long ago the post was created. * - $topic: An object with the raw data of the post. Potentially u...
PHP
<?php /** * @file * Displays an appropriate icon for a forum post. * * Available variables: * - $new_posts: Indicates whether or not the topic contains new posts. * - $icon_class: The icon to display. May be one of 'hot', 'hot-new', 'new', * 'default', 'closed', or 'sticky'. * - $first_new: Indicates whether...
PHP
<?php /** * @file * User page callbacks for the Forum module. */ /** * Page callback: Prints a forum listing. * * @param $forum_term * A tree of all forums for a given taxonomy term ID. Defaults to NULL. See * the return object of forum_forum_load() for a complete definition. * * @return * A string c...
PHP
<?php /** * @file * Administrative page callbacks for the Forum module. */ /** * Page callback: Returns a form for creating a new forum or container. * * @param $type * What is being added. Possible values are 'forum' and 'container'. * @param $edit * (optional) Associative array containing a forum term ...
PHP
<?php /** * @file * Hooks provided by Overlay module. */ /** * @addtogroup hooks * @{ */ /** * Allow modules to act when an overlay parent window is initialized. * * The parent window is initialized when a page is displayed in which the * overlay might be required to be displayed, so modules can act here i...
PHP
<?php /** * @file * Default theme implementation to display a page in the overlay. * * Available variables: * - $title: the (sanitized) title of the page. * - $page: The rendered page content. * - $tabs (array): Tabs linking to any sub-pages beneath the current page * (e.g., the view and edit tabs when displ...
PHP
<?php /** * @file * User page callbacks for the Statistics module. */ /** * Page callback: Displays statistics for a node. * * @return * A render array containing node statistics. If information for the node was * not found, this will deliver a page not found error via drupal_not_found(). */ function sta...
PHP
<?php /** * @file * Admin page callbacks for the Statistics module. */ /** * Page callback: Displays the "recent hits" page. * * This displays the pages with recent hits in a given time interval that * haven't been flushed yet. The flush interval is set on the statistics * settings form, but is dependent on c...
PHP
<?php /** * @file * Builds placeholder replacement tokens for node visitor statistics. */ /** * Implements hook_token_info(). */ function statistics_token_info() { $node['total-count'] = array( 'name' => t("Number of views"), 'description' => t("The number of visitors who have read the node."), ); ...
PHP
<?php /** * @file * Handles counts of node views via Ajax with minimal bootstrap. */ /** * Root directory of Drupal installation. */ define('DRUPAL_ROOT', substr($_SERVER['SCRIPT_FILENAME'], 0, strpos($_SERVER['SCRIPT_FILENAME'], '/modules/statistics/statistics.php'))); // Change the directory to the Drupal root. ...
PHP
<?php /** * @file * Default theme implementation for wrapping member listings and their * profiles. * * This template is used when viewing a list of users. It can be a general * list for viewing all users with the URL of "example.com/profile" or when * viewing a set of users who share a specific value for a pro...
PHP
<?php /** * @file * Administrative page callbacks for the profile module. */ /** * Form builder to display a listing of all editable profile fields. * * @ingroup forms * @see profile_admin_overview_submit() */ function profile_admin_overview($form) { $result = db_query('SELECT title, name, type, category, f...
PHP
<?php /** * @file * Default theme implementation for displaying a user and their profile data * for member listing pages. * * @see profile-wrapper.tpl.php * where all the data is collected and printed out. * * Available variables: * - $account: User's account object. * - $user_picture: Image configured ...
PHP
<?php /** * @file * User page callbacks for the profile module. */ /** * Menu callback; display a list of user information. */ function profile_browse() { // Ensure that the path is converted to 3 levels always. list(, $name, $value) = array_pad(explode('/', $_GET['q'], 3), 3, ''); $field = db_query("SELE...
PHP
<?php /** * @file * Default theme implementation for displaying a users profile within a * block. It only shows in relation to a node displayed as a full page. * * Available variables: * - $user_picture: Image configured for the account linking to the users page. * - $profile: Keyed array of all profile fields ...
PHP
<?php /** * @file * Administrative page callbacks for menu module. */ /** * Menu callback which shows an overview page of all the custom menus and their descriptions. */ function menu_overview_page() { $result = db_query("SELECT * FROM {menu_custom} ORDER BY title", array(), array('fetch' => PDO::FETCH_ASSOC))...
PHP
<?php /** * @file * Hooks provided by the Menu module. */ /** * @addtogroup hooks * @{ */ /** * Respond to a custom menu creation. * * This hook is used to notify modules that a custom menu has been created. * Contributed modules may use the information to perform actions based on the * information entere...
PHP
<?php /** * @file * Admin page callbacks for the Contact module. */ /** * Categories/list tab. */ function contact_category_list() { $header = array( t('Category'), t('Recipients'), t('Selected'), array('data' => t('Operations'), 'colspan' => 2), ); $rows = array(); // Get all the contac...
PHP
<?php /** * @file * Page callbacks for the Contact module. */ /** * Form constructor for the site-wide contact form. * * @see contact_site_form_validate() * @see contact_site_form_submit() * @ingroup forms */ function contact_site_form($form, &$form_state) { global $user; // Check if flood control has b...
PHP
<?php /** * @file * Hooks provided by the Trigger module. */ /** * @addtogroup hooks * @{ */ /** * Declare triggers (events) for users to assign actions to. * * This hook is used by the trigger module to create a list of triggers (events) * that users can assign actions to. Your module is responsible for d...
PHP
<?php /** * @file * Admin page callbacks for the trigger module. */ /** * Builds a form that allows users to assign actions to triggers. * * @param $module_to_display * Which tab of triggers to display. E.g., 'node' for all node-related * triggers. * * @return * HTML form. * * @see trigger_menu() ...
PHP
<?php /** * @file * Hooks provided by the Dashboard module. */ /** * @addtogroup hooks * @{ */ /** * Add regions to the dashboard. * * @return * An array whose keys are the names of the dashboard regions and whose * values are the titles that will be displayed in the blocks administration * interfa...
PHP
<?php /** * @file * Default theme implementation to present a linked feed item for summaries. * * Available variables: * - $feed_url: Link to originating feed. * - $feed_title: Title of feed. * - $feed_age: Age of remote feed. * - $source_url: Link to remote source. * - $source_title: Locally set title for th...
PHP
<?php /** * @file * Processor functions for the aggregator module. */ /** * Implements hook_aggregator_process_info(). */ function aggregator_aggregator_process_info() { return array( 'title' => t('Default processor'), 'description' => t('Creates lightweight records from feed items.'), ); } /** * I...
PHP
<?php /** * @file * Default theme implementation to present the source of the feed. * * The contents are rendered above feed listings when browsing source feeds. * For example, "example.com/aggregator/sources/1". * * Available variables: * - $source_icon: Feed icon linked to the source. Rendered through * t...
PHP
<?php /** * @file * Administration page callbacks for the Aggregator module. */ /** * Page callback: Displays the Aggregator module administration page. */ function aggregator_admin_overview() { return aggregator_view(); } /** * Displays the aggregator administration page. * * @return * A HTML-formatted...
PHP
<?php /** * @file * Documentation for aggregator API. */ /** * @addtogroup hooks * @{ */ /** * Create an alternative fetcher for aggregator.module. * * A fetcher downloads feed data to a Drupal site. The fetcher is called at the * first of the three aggregation stages: first, data is downloaded by the * a...
PHP
<?php /** * @file * Default theme implementation to wrap aggregator content. * * Available variables: * - $content: All aggregator content. * - $page: Pager links rendered through theme_pager(). * * @see template_preprocess() * @see template_preprocess_aggregator_wrapper() * * @ingroup themeable */ ?> <div...
PHP