Xano

Code

  1. // $payment is a Payment object and it's default (init) status is NEW, then moves to PENDING, and it ends up in COMPLETED, CANCELLED or EXPIRED.

Code

  1. <?php
  2.   $element['pmid'] = array(
  3.     '#type' => 'select',
  4.     '#title' => isset($element['#title']) ?

Code

  1. <?php
  2.  
  3. /**
  4.  * @file
  5.  * Pseudo code demonstrating the workflow of setting a payment's status.
  6.  */
  7.  
  8. /**
  9.  * A Payment.
  10.  */
  11. class Payment {
  12.  
  13.   /**
  14.    * The current payment status.
  15.    *
  16.    *

Code

  1. SELECT users.uid AS uid,
  2.    users.picture AS users_picture,
  3.    users.name AS users_name,
  4.    users.mail AS users_mail,
  5.    node_users.title AS node_users_title,
  6.    node_users.nid AS node_users_nid

Code

  1.   /**
  2.    * Build XML from a JSON object.
  3.    *
  4.    * @param data object
  5.    * @param depth integer
  6.    *   Optional integer used internally to keep track of the amount of indentation.
  7.    *
  8.    * @re

Code

  1. function idealadmin_transaction_list() {
  2.   global $pager_page_array, $pager_total, $pager_total_items;
  3.  
  4.   // Build the pager.

Code

  1. <?php
  2. function mew_item_type($item) {
  3.   $item_types = mew_item_types();
  4.   $types = array();
  5.   foreach (mew_item_types() as $type => $title) {
  6.     if ($type & $item['type']) {
  7.       $types[] = $t

Code

  1. version:1
  2. :debug:clean Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/work /opt/local/var/macports/sources/rsync.macpo

Code

  1. <?php
  2. t('this !is a @string', array(
  3.   '@string' => 'Foobar',
  4. ));
  5. // I need "this is a @string" and "@string" and I need to know these two belong together.
  6.  
  7.  
  8. t('this !is a @string', array(
  9.   '

Code

  1. <?php
  2.   function render() {
  3.     if (!$this->hidden) {
  4.       foreach ($this->pre_render_callbacks as $callback) {
  5.         call_user_func($callback, $this);
  6.       }
  7.       // Allow pre_render to ab

Code

  1. function trevi_defuse_pcre(&$string, $pattern_split, $pattern_match) {
  2.   $matches = preg_split($pattern_split, $string, NULL, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE);
  3.   $string = '';

Code

  1. #
  2. # DocumentRoot: The directory out of which you will serve your
  3. # documents.

Code

  1. #
  2. # This is the main Apache HTTP server configuration file.

Fix for Code

  1.       $new = TRUE;
  2.       if ($sequences[0]) {
  3.         $key = count($sequences[0]) - 1;
  4.         $last = array(&$sequences[0][$key], &$sequences[1][$key]);
  5.         if ($last[0]->position + $last[0]-

Code

  1.       if ($sequences[0] &&
  2.         $key = count($sequences[0]) - 1 &&
  3.         $last = array(&$sequences[0][$key], &$sequences[1][$key]) &&
  4.         $last[0]->position + $last[0]->length + 1 == $i &&

Fix for Code

  1. Drupal.behaviors.dutchGuideGmap = function(context) {
  2.   var directionsService = new google.maps.DirectionsService();
  3.   var directionsDisplay = new google.maps.DirectionsRenderer();
  4.  
  5.   // Create th

Code

  1. Drupal.behaviors.dutchGuideGmap = function(context) {
  2.         var directionsService = new google.maps.DirectionsService();
  3.         var directionsDisplay = new google.maps.DirectionsRenderer();
  4.  
  5.   // Create the

Code

  1. /**
  2.  * Perform a text review.
  3.  *
  4.  * @todo Find a way to process multiple matches for the same substring.
  5.  *
  6.  * @param $tpid
  7.  *   The TPID of the review profile to use.
  8.  * @param $strings string

Code

  1. Process:         Adium [798]
  2. Path:            /Applications/Adium.app/Contents/MacOS/Adium
  3. Identifier:      com.adiumX.adiumX
  4. Version:         1.4.1 (1.4.1)
  5. Code Type:       X86 (Native)
  6. Parent P

Code

  1. /**
  2.  * Delete a list.
  3.  */
  4. function scunthorpe_form_delete(array &$form_state, scunthorpeList $list) {
  5.   $form_state['storage']['scunthorpe_list'] = $list;
  6.  
  7.   $question = $list->type == SCUNTHORP
Syndicate content