code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php
$yhendus = new mysqli($host, $user, $pw, $db);
if($_SESSION['roll'] != 'tehnik') {
header('Location: index.php');
die();
} else {
if(isset($_POST['lisa_kommentaar']))
{
$q="UPDATE parandused SET kommentaar=?, kommentaariaeg=NOW() WHERE ID=?";
$kask=$yhendus->prepare($q);
$kask->bind... | PHP |
<?php
$yhendus = new mysqli($host, $user, $pw, $db);
if($_SESSION['roll'] != 'haldur') {
header('Location: index.php');
die();
} else {
echo '<h2 style="margin-top: 15px;">Tööde vastuvõtmine</h2>';
if(isset($_REQUEST['kustuta'])) {
$kask = $yhendus->prepare('DELETE FROM parandused WHERE ID=?');
$kask->... | PHP |
<?php
//please note that request will fail if you upload a file larger
//than what is supported by your PHP or Webserver settings
sleep(1);//to simulate some delay for local host
//is this an ajax request or sent via iframe(IE9 and below)?
$ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_... | PHP |
<?php
$parent = isset($_POST['id']) ? (int)$_POST['id'] : 0;
$result = array();
$data = array();
try {
$db = new PDO('sqlite:data/treeview-city.sqlite');
//this query selects all records that are children of our requested $parent id
//all fields of each record is retrieved (c.*)
//also the followi... | PHP |
<?php
/**
* @link http://gist.github.com/385876
*/
class CSV
{
public static function to_array($filename='', $delimiter=',')
{
if(!file_exists($filename) || !is_readable($filename))
return FALSE;
$header = NULL;
$data = array();
if (($handle = fopen($filename, 'r')) !== FALSE)... | PHP |
<?php
//this is basic class for loading page/layout data/templates from json or csv files
//usually you have a Controller which grabs needed data from database using models, etc and passes it onto the view/template files
class Page {
private $type;
private $name;
private $vars; //holds the variables and data... | PHP |
<?php
/**
* Mustache Template Custom Loader.
*
* A CustomLoader extends the normal FilesystemLoader with the ability to find templates inside specific layout and page directories.
* @extends Mustache_Loader_FilesystemLoader
*/
class CustomLoader extends Mustache_Loader_FilesystemLoader
{
private $page;
privat... | PHP |
<?php
//this defines a simple model class for loading basic page data which is read from a json file
class Sidenav {
private $navList = null;
private $active_page = null;
private $breadcrumbs;
public function mark_active_item($active_page) {
$this->active_page = $active_page;
$this->breadcrumbs = arra... | PHP |
<?php
/**
Author: %Author%
Licence: %Licence%
Website: %web%
**/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.modellist');
class %Comp_name%Model%name% extends JModelItem{
protected $_context = '%comp_name%.%name%';
protected... | PHP |
<?php
/**
Author: %Author%
Licence: %Licence%
Website: %web%
**/
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.application.component.controller');
class %Comp_name%Controller%name% extends JController{
@task
public function %task_name%(%parameters%){
//your task specific code... | PHP |
<?php
/**
Author: %Author%
Licence: %Licence%
Website: %web%
**/
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.application.component.model');
class %Comp_name%Model%name% extends JModelItem{
@action
public function %action_name%(%parameters%){
//your task specific codes goes ... | PHP |
<?php
class JoomlaListener extends StandardListener{
public function createUser($username,$password,$email){
}
}
| PHP |
<?php
include_once('api.php');
include_once('joomla.php');
include_once('twitter.php');
include_once('authenticateFilter.php');
$pull=new Register();
pull->addFilter(new AuthenticateFilter('authKey','cryptKey'),'authenticate');
pull->registerDef('joomla.def');
pull->registerListener(new JoomlaListner(),1);
pull->reg... | PHP |
<?php
class TwitterListener extends PhpCLIListener{
public function addStatus($username,$status){
}
}
| PHP |
<?php
class Pull{
public function server(){
//get the message
//validate it with def files
//get filter list
//go through filters
//invoke listeners
//return response
}
}
| PHP |
<?php
class TwitterListenerUserSync extends Listener{
public function __construct($registrar){
parent::__construct($registrar);
}
public function createUser($username,$password,$email){
}
}
| PHP |
<?php
class JConnektModuleUserSync extends JController{
public function display(){
parent::display();
}
| PHP |
<?php
class TwitterListenerMublog extends Listener{
public function __construct($registrar){
parent::__construct($registrar);
}
public function addStatus($username,$status){
}
}
| PHP |
<?php
class UserSyncListenerUserSync extends Listener{
public function __construct($registrar){
parent::__construct($registrar);
}
public function createUser($username,$password,$email){
}
}
| PHP |
<?php
class JConnektModuleUserSync extends JController{
public function display(){
$invoker=JConnekt::getInvoker('sampleExApp');
$invoker->invoke("UserSync::getLatestUsers",array(10));
$res=$invoker->getResponse();
foreach($res a... | PHP |
<?php
class authenticateFilter extends Filter{
public function __constructor($authKey,$cryptKey){
}
public function wrap($group,$method,$payload){
}
public function unWrap($group,$method,$payload){
}
}
| PHP |
<?php
abstract class PostFilter{
/**
This used in the Registry to wrap with any thing if needed before it gets written as echo..
@param $payload the data what we are going to wrap
@param $registryObject is a global object which can be used to pass data between filters
including all the pre and post filters... | PHP |
<?php
class Listener{
private $registrar;
public function __contruct($registrar){
$this->$registrar=$registrar;
$group='Extract Group from the ClassName';
$this->$registrar->addListener($this,$group);
}
| PHP |
<?php
include_once('api.php');
include_once('joomla.php');
include_once('twitter.php');
include_once('authenticateFilter.php');
$pull=new Registrar();
JConnekt::registerListeners($pull);
pull->addFilter(new AuthenticateFilter('authKey','cryptKey'),'authenticate');
pull->registerDef('joomla.def'); // here this metho... | PHP |
<?php
class StandardInvoker{
$responses=array();
public function invoke($method,$params){
//validate it with def files
//get filter list
//go through filters
//get end-point calling url
//call with fopen or curl and get the return and store it
//in the $responses
//return the latest index of $re... | PHP |
<?php
$push =new StandardInvoker('endpoint');
$push->registerDef('joomla.def');
$push=new StandardInvoker();
$push->addPreFilter(new AuthenticateFilter('appName','authKey'),'authenticate',1);
$push0>addPostFilter(new JSONP(),'jsonp',1);
$id=$push->invoke('UserSync::createUser',array('username','password','email'));
$r... | PHP |
<?php
class StandardInvoker{
$responses=array();
public function invoke($method,$params){
//validate it with def files
//get filter list
//go through filters
//get end-point calling url
//call with fopen or curl and get the return and store it
//in the $responses
//return the latest index of $re... | PHP |
<?php
class Registrar{
public function addListener($listnerObject,$group){
}
public function server(){
//get the message
//validate it with def files
//get filter list
//go through filters
//invoke listeners
//return response
}
}
| PHP |
<?php
abstract class PreFilter{
/**
This used in the Invoker to wrap the content in the filter chain
@param $payload the data what we are going to wrap
@param $registryObject is a global object which can be used to pass data between filters
including all the pre and post filters
@return the wraped pa... | PHP |
<?php
| PHP |
<?php
/**
____ _____
/ __ \ / ____|
___ _ _ ___| | | | (___
/ _ \ | | |/ _ \ | | |\___ \
| __/ |_| | __/ |__| |____) |
\___|\__, |\___|\____/|_____/
... | PHP |
<?php
$content = getRec('..\\..\\eyeOS\\extern\\');
$content .= 'pause';
file_put_contents('compiler.cmd', $content);
header('Content-type: text/plain');
echo $content;
function getRec($folder, $exclude = array()) {
$content = '';
foreach (scandir($folder) as $file) {
if ($file !== '.' && $file !== '..' && !in_ar... | PHP |
<?php
$content = getRec('..\\..\\eyeOS\\extern\\');
$content .= 'pause';
file_put_contents('yuicompressor.cmd', $content);
header('Content-type: text/plain');
echo $content;
function getRec($folder, $exclude = array()) {
$content = '';
foreach (scandir($folder) as $file) {
if ($file !== '.' && $file !== '..' && !... | PHP |
<?php
/*
____ _____
/ __ \ / ____|
___ _ _ ___| | | | (___
/ _ \ | | |/ _ \ | | |\___ \
| __/ |_| | __/ |__| |____) |
\___|\__, |\___|\____/|_____/
__/ |... | PHP |
<?php
/*
____ _____
/ __ \ / ____|
___ _ _ ___| | | | (___
/ _ \ | | |/ _ \ | | |\___ \
| __/ |_| | __/ |__| |____) |
\___|\__, |\___|\____/|_____/
__/ |... | PHP |
<?php
// by Edd Dumbill (C) 1999-2002
// <edd@usefulinc.com>
// $Id: xmlrpcs.inc,v 1.71 2008/10/29 23:41:28 ggiunta Exp $
// Copyright (c) 1999,2000,2002 Edd Dumbill.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the follow... | PHP |
<?php
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +------... | PHP |
<?php
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +------... | PHP |
<?php
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +------... | PHP |
<?php
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +------... | PHP |
<?php
/**
* Replace function is_callable()
*
* @category PHP
* @package PHP_Compat
* @link http://php.net/function.is_callable
* @author Gaetano Giunta <giunta.gaetano@sea-aeroportimilano.it>
* @version $Id: is_callable.php 2 2009-03-16 20:22:51Z ggiunta $
* @since PHP 4.0.6
* @req... | PHP |
<?php
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +------... | PHP |
<?php
/**
* PHP-XMLRPC "wrapper" functions
* Generate stubs to transparently access xmlrpc methods as php functions and viceversa
*
* @version $Id: xmlrpc_wrappers.inc,v 1.13 2008/09/20 01:23:47 ggiunta Exp $
* @author Gaetano Giunta
* @copyright (C) 2006-2008 G. Giunta
* @license code licensed under the BSD Lic... | PHP |
<?php
// by Edd Dumbill (C) 1999-2002
// <edd@usefulinc.com>
// $Id: xmlrpc.inc,v 1.174 2009/03/16 19:36:38 ggiunta Exp $
// Copyright (c) 1999,2000,2002 Edd Dumbill.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the follow... | PHP |
<?php
/*~ class.smtp.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 5.1 |
| Contact: via sourceforge.net support pages (also www.code... | PHP |
<?php
/*~ class.phpmailer.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 5.1 |
| Contact: via sourceforge.net support pages (also www... | PHP |
<?php
/*
____ _____
/ __ \ / ____|
___ _ _ ___| | | | (___
/ _ \ | | |/ _ \ | | |\___ \
| __/ |_| | __/ |__| |____) |
\___|\__, |\___|\____/|_____/
__/ |... | PHP |
<?php
/*
____ _____
/ __ \ / ____|
___ _ _ ___| | | | (___
/ _ \ | | |/ _ \ | | |\___ \
| __/ |_| | __/ |__| |____) |
\___|\__, |\___|\____/|_____/
__/ |... | PHP |
<?php
/*
____ _____
/ __ \ / ____|
___ _ _ ___| | | | (___
/ _ \ | | |/ _ \ | | |\___ \
| __/ |_| | __/ |__| |____) |
\___|\__, |\___|\____/|_____/
__/ |... | PHP |
<?php
/**
* @file content_migrate.text.inc
* Code to implement Content Migrate hooks on behalf of the Text module.
*/
/**
* Implements hook_content_migrate_field_alter().
*
* Use this to tweak the conversion of field settings
* from the D6 style to the D7 style for specific
* situations not handled by basic c... | PHP |
<?php
/**
* @file content_migrate.file.inc
* Code to implement Content Migrate hooks on behalf of the File module.
*/
/**
* Implements hook_content_migrate_field_alter().
*
* Use this to tweak the conversion of field settings
* from the D6 style to the D7 style for specific
* situations not handled by basic co... | PHP |
<?php
/**
* @file content_migrate.options.inc
* Code to implement Content Migrate hooks on behalf of the Options module.
*/
/**
* Implements hook_content_migrate_instance_alter().
*
* Use this to tweak the conversion of instance or widget settings
* from the D6 style to the D7 style for specific
* situations ... | PHP |
<?php
/**
* @file content_migrate.number.inc
* Code to implement Content Migrate hooks on behalf of the Number module.
*/
/**
* Implements hook_content_migrate_field_alter().
*
* Use this to tweak the conversion of field settings
* from the D6 style to the D7 style for specific
* situations not handled by bas... | PHP |
<?php
/**
* @file
* Documentation for content migrate API.
*/
/**
* Implement this hook to alter the field definition of the migrated content.
*
* Use this to tweak the conversion of field settings from the D6 style to the
* D7 style for specific situations not handled by basic conversion, as when
* field typ... | PHP |
<?php
/**
* @file content_migrate.admin.inc
* Code to process field data migration, moved into a separate file for efficiency.
*/
// Load the include files for each supported module. It is safe to do this here
// as this file is loaded for all actual processing.
include_once(dirname(__FILE__) . '/../modules/content... | PHP |
<?php
/**
* @file content_migrate.drush.inc
* Drush commands for content_migrate,
*/
/**
* Implementation of hook_drush_help().
*/
function content_migrate_drush_help($section) {
switch ($section) {
case 'content migrate:content-migrate-status':
return dt("Show field migration status");
case 'con... | PHP |
<?php
/**
* @file content_migrate.values.inc
* Code to produce D7-style field and instance values from the data in D6 tables.
* Separated into a separate file for efficiency.
*/
/**
* Create a D7-style field array from data stored
* in the D6 content field tables.
*
* @param $field_name
* Optionally request ... | PHP |
<?php
/**
* @file
* Bartik's 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['fiel... | PHP |
<?php
/**
* @file
* Bartik's 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: Strin... | PHP |
<div class="projects">
<h2><?php print $node->title; ?></h2>
<span>Is there butter?: <?php print $node->field_buttered[0]['value']; ?></span>
<div class="description"><?php print $node->content ['body']['#value']?></div>
</div | PHP |
<?php
/**
* @file
* Bartik's 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($conten... | PHP |
<?php
/**
* @file
* Implementation to display a single Drupal page while offline.
*
* All the available variables are mirrored in page.tpl.php.
*
* @see template_preprocess()
* @see template_preprocess_maintenance_page()
* @see bartik_process_maintenance_page()
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1... | PHP |
<?php
/**
* @file
* Bartik's 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 normally located in the
* modules/system directory.
*
* Available variables:
*
* General utility vari... | PHP |
<?php
/**
* Add body classes if certain regions have content.
*/
function arto_s_preprocess_html(&$variables) {
if (!empty($variables['page']['featured'])) {
$variables['classes_array'][] = 'featured';
}
if (!empty($variables['page']['triptych_first'])
|| !empty($variables['page']['triptych_middle'])
... | PHP |
<?php
// Put the logo path into JavaScript for the live preview.
drupal_add_js(array('color' => array('logo' => theme_get_setting('logo', 'bartik'))), 'setting');
$info = array(
// Available colors and color labels used in theme.
'fields' => array(
'top' => t('Header top'),
'bottom' => t('Header bottom'),... | PHP |
<?php
/**
* @file
* Configuration file for Drupal's multi-site directory aliasing feature.
*
* This file allows you to define a set of aliases that map hostnames, ports, and
* pathnames to configuration directories in the sites directory. These aliases
* are loaded prior to scanning for directories, and they are... | PHP |
<?php
/**
* @file
* Drupal site-specific configuration file.
*
* IMPORTANT NOTE:
* This file may have been set to read-only by the Drupal installation program.
* If you make changes to this file, be sure to protect it again after making
* your modifications. Failure to remove write permissions to this file is a... | PHP |
<?php
/**
* @file
* Default 'implementations' of hook_field_*(): common field housekeeping.
*
* Those implementations are special, as field.module does not define any field
* types. Those functions take care of default stuff common to all field types.
* They are called through the _field_invoke_default() iterato... | PHP |
<?php
/**
* @file
* Field CRUD API, handling field and field instance creation and deletion.
*/
/**
* @defgroup field_crud Field CRUD API
* @{
* Create, update, and delete Field API fields, bundles, and instances.
*
* Modules use this API, often in hook_install(), to create custom
* data structures. UI modul... | PHP |
<?php
/**
* @file
* Field Info API, providing information about available fields and field types.
*/
/**
* Retrieves the FieldInfo object for the current request.
*
* @return FieldInfo
* An instance of the FieldInfo class.
*/
function _field_info_field_cache() {
// Use the advanced drupal_static() pattern... | PHP |
<?php
/**
* @file
* Field attach API, allowing entities (nodes, users, ...) to be 'fieldable'.
*/
/**
* Exception thrown by field_attach_validate() on field validation errors.
*/
class FieldValidationException extends FieldException {
var $errors;
/**
* Constructor for FieldValidationException.
*
* @pa... | PHP |
<?php
/**
* @file
* Field forms management.
*/
/**
* Creates a form element for a field and can populate it with a default value.
*
* If the form element is not associated with an entity (i.e., $entity is NULL)
* field_get_default_value will be called to supply the default value for the
* field. Also allows o... | PHP |
<?php
/**
* @file
* Hooks provided by the Options module.
*/
/**
* Returns the list of options to be displayed for a field.
*
* Field types willing to enable one or several of the widgets defined in
* options.module (select, radios/checkboxes, on/off checkbox) need to
* implement this hook to specify the list... | PHP |
<?php
/**
* @file
* Hooks provided by the Field module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Exposes "pseudo-field" components on fieldable entities.
*
* Field UI's "Manage fields" and "Manage display" pages let users re-order
* fields, but also non-field components. For nodes, these include the title,
... | PHP |
<?php
/**
* @file
* Defines an entity type.
*/
/**
* Implements hook_entity_info().
*/
function field_test_entity_info() {
// If requested, clear the field cache while this hook is being called. See
// testFieldInfoCache().
if (variable_get('field_test_clear_info_cache_in_hook_entity_info', FALSE)) {
f... | PHP |
<?php
/**
* @file
* Defines a field storage backend.
*/
/**
* Implements hook_field_storage_info().
*/
function field_test_field_storage_info() {
return array(
'field_test_storage' => array(
'label' => t('Test storage'),
'description' => t('Dummy test storage backend. Stores field values in th... | PHP |
<?php
/**
* @file
* Defines a field type and its formatters and widgets.
*/
/**
* Implements hook_field_info().
*/
function field_test_field_info() {
return array(
'test_field' => array(
'label' => t('Test field'),
'description' => t('Dummy field type used for tests.'),
'settings' => arra... | PHP |
<?php
/**
* @file field.tpl.php
* Default template implementation to display the value of a field.
*
* This file is not used and is here as a starting point for customization only.
* @see theme_field()
*
* Available variables:
* - $items: An array of field values. Use render() to output them.
* - $label: The ... | PHP |
<?php
/*
* @file
* Definition of the FieldInfo class.
*/
/**
* Provides field and instance definitions for the current runtime environment.
*
* A FieldInfo object is created and statically persisted through the request
* by the _field_info_field_cache() function. The object properties act as a
* "static cache... | PHP |
<?php
/**
* @file
* Functions implementing Field API multilingual support.
*/
/**
* @defgroup field_language Field Language API
* @{
* Handling of multilingual fields.
*
* Fields natively implement multilingual support, and all fields use the
* following structure:
* @code
* $entity->{$field_name}[$langcod... | PHP |
<?php
/**
* @file
* Default theme implementation to display the poll results in a block.
*
* Variables available:
* - $title: The title of the poll.
* - $results: The results of the poll.
* - $votes: The total results in the poll.
* - $links: Links in the poll.
* - $nid: The nid of the poll
* - $cancel_form:... | PHP |
<?php
/**
* @file
* Builds placeholder replacement tokens for values specific to Poll nodes.
*/
/**
* Implements hook_token_info().
*/
function poll_token_info() {
$node['poll-votes'] = array(
'name' => t("Poll votes"),
'description' => t("The number of votes that have been cast on a poll."),
);
$n... | PHP |
<?php
/**
* @file
* Default theme implementation to display the bar for a single choice in a
* poll.
*
* Variables available:
* - $title: The title of the poll.
* - $votes: The number of votes for this choice
* - $total_votes: The number of votes for this choice
* - $percentage: The percentage of votes for th... | PHP |
<?php
/**
* @file
* Default theme implementation to display the bar for a single choice in a
* poll.
*
* Variables available:
* - $title: The title of the poll.
* - $votes: The number of votes for this choice
* - $total_votes: The number of votes for this choice
* - $percentage: The percentage of votes for th... | PHP |
<?php
/**
* @file
* User page callbacks for the poll module.
*/
/**
* Menu callback to provide a simple list of all polls available.
*/
function poll_page() {
$polls_per_page = 15;
$count_select = db_select('node', 'n');
$count_select->addExpression('COUNT(*)', 'expression');
$count_select->join('poll',... | PHP |
<?php
/**
* @file
* Default theme implementation to display the poll results in a block.
*
* Variables available:
* - $title: The title of the poll.
* - $results: The results of the poll.
* - $votes: The total results in the poll.
* - $links: Links in the poll.
* - $nid: The nid of the poll
* - $cancel_form: ... | PHP |
<?php
/**
* @file
* Default theme implementation to display voting form for a poll.
*
* - $choice: The radio buttons for the choices in the poll.
* - $title: The title of the poll.
* - $block: True if this is being displayed as a block.
* - $vote: The vote button
* - $rest: Anything else in the form that may h... | PHP |
<?php
/**
* @file
* Search query extender and helper functions.
*/
/**
* Do a query on the full-text search index for a word or words.
*
* This function is normally only called by each module that supports the
* indexed search (and thus, implements hook_update_index()).
*
* Results are retrieved in two logic... | PHP |
<?php
/**
* @file
* Hooks provided by the Search module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Define a custom search type.
*
* This hook allows a module to tell search.module that it wishes to perform
* searches on content it defines (custom node types, users, or comments for
* example) when a site se... | PHP |
<?php
/**
* @file
* Default theme implementation for displaying search results.
*
* This template collects each invocation of theme_search_result(). This and
* the child template are dependent to one another sharing the markup for
* definition lists.
*
* Note that modules may implement their own search type an... | PHP |
<?php
/**
* @file
* Admin page callbacks for the search module.
*/
/**
* Menu callback: confirm wiping of the index.
*/
function search_reindex_confirm() {
return confirm_form(array(), t('Are you sure you want to re-index the site?'),
'admin/config/search/settings', t('The search index is not... | PHP |
<?php
/**
* @file
* User page callbacks for the search module.
*/
/**
* Menu callback; presents the search form and/or search results.
*
* @param $module
* Search module to use for the search.
* @param $keys
* Keywords to use for the search.
*/
function search_view($module = NULL, $keys = '') {
$info ... | PHP |
<?php
/**
* @file
* Default theme implementation for displaying a single search result.
*
* This template renders a single search result and is collected into
* search-results.tpl.php. This and the parent template are
* dependent to one another sharing the markup for definition lists.
*
* Available variables:
... | PHP |
<?php
/**
* @file
* Displays the search form block.
*
* Available variables:
* - $search_form: The complete search form ready for print.
* - $search: Associative array of search elements. Can be used to print each
* form element separately.
*
* Default elements within $search:
* - $search['search_block_for... | PHP |
<?php
/**
* @file
* Administrative page callbacks for the shortcut module.
*/
/**
* Returns the maximum number of shortcut "slots" available per shortcut set.
*
* This is used as a limitation in the user interface only.
*
* @return
* The maximum number of shortcuts allowed to be added to a shortcut set.
*... | PHP |
<?php
/**
* @file
* Hooks provided by the Shortcut module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Return the name of a default shortcut set for the provided user account.
*
* This hook allows modules to define default shortcut sets for a particular
* user that differ from the site-wide default (for examp... | PHP |
<?php
/**
* @file
* Hooks provided by the Filter module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Define content filters.
*
* User submitted content is passed through a group of filters before it is
* output in HTML, in order to remove insecure or unwanted parts, correct or
* enhance the formatting, trans... | PHP |
<?php
/**
* @file
* Administrative page callbacks for the Filter module.
*/
/**
* Page callback: Form constructor for a form to list and reorder text formats.
*
* @ingroup forms
* @see filter_menu()
* @see filter_admin_overview_submit()
*/
function filter_admin_overview($form) {
// Overview of all formats.... | PHP |
<?php
/**
* @file
* User page callbacks for the Filter module.
*/
/**
* Page callback: Displays a page with long filter tips.
*
* @return string
* An HTML-formatted string.
*
* @see filter_menu()
* @see theme_filter_tips()
*/
function filter_tips_long() {
$format_id = arg(2);
if ($format_id) {
$o... | PHP |
<?php
/**
* @file
* Administrative page callbacks for the taxonomy module.
*/
/**
* Form builder to list and manage vocabularies.
*
* @ingroup forms
* @see taxonomy_overview_vocabularies_submit()
* @see theme_taxonomy_overview_vocabularies()
*/
function taxonomy_overview_vocabularies($form) {
$vocabularies... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.