You are here

function example_php_permissions in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/tests/old/samples/example.module \example_php_permissions()

File

coder_upgrade/tests/old/samples/example.module, line 347

Code

function example_php_permissions() {

  // 'use PHP for block visibility' -- Change the next line but leave this alone
  $access = user_access('use PHP for block visibility');
  if ($access = user_access('use PHP for block visibility')) {

    //
  }
}