Xano

Code

  1. <?php
  2.  
  3. _menu_translate() causes an error on line 776 that says $path_map[7] does not exist, but why?
  4.  
  5. // $link_map
  6. array (
  7.   0 => 'admin',
  8.   1 => 'config',
  9.   2 => 'services',
  10.   3 => 'payment'

Code

  1. <?php
  2.  
  3. // Create/build an invoice and return it.
  4. function createInvoice(Payment $payment, $contact_id) }
  5.       // Build the invoice.
  6.       mynameisbartmoneybird_include('Contact');
  7.       $invoic

Code

  1. <?php
  2.  
  3.   $data['example_table']['plain_text_field'] = array(
  4.     'sort' => array(
  5.       'handler' => 'views_handler_sort',
  6.       'custom property 1' => '2',
  7.       'foo' => 'bar',
  8.     ),
  9.   );

Code

  1. <?php
  2. // The following code is from a hook_views_data_alter() implementation and adds a relationship to data already exposed in Entity API's hook_views_data().
  3.  
  4.   $data['payment']['pid']['relations

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
Syndicate content