[kwlug-disc] PHP code question

Khalid Baheyeldin kb at 2bits.com
Wed Sep 7 14:57:51 EDT 2011


> Unexpected character in input:  ''' (ASCII=39) state=1

That is a single quote, delimiter for a string or something.

Are you sure it is only for the path member/register that this manifests
itself?

Change the function to be like this:


function ctools_php_ctools_access_check($__conf, $contexts) {
  if (arg(0) == 'member' && arg(1) == 'register') {
    print_r($__conf);
  }

  $access = eval($__conf['php']);
  return $access;
}

This should display and array and 'php' will be one element of it.
-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20110907/49778542/attachment.htm>


More information about the kwlug-disc mailing list