classAct 6.x-1.x-dev
Nightly development snapshot from CVS branch: DRUPAL-6--1
First released: September 3, 2008 - 15:06
First released: September 3, 2008 - 15:06
Download: classAct-6.x-1.x-dev.tar.gz
Size: 14.59 KB
md5_file hash: f98c39b3e4f32a6832095eded8dffb3a
Last updated: April 25, 2009 - 00:04
View usage statistics for this releaseSize: 14.59 KB
md5_file hash: f98c39b3e4f32a6832095eded8dffb3a
Last updated: April 25, 2009 - 00:04
Class Act
Now you don't have to worry with declaring the globals, they're already available using the ca class of the classAct module.
<?php
function myFunc () {
$admin = FALSE;
if (ca::$user->uid == 1) {
$admin = TRUE;
}
}
?>