Jump to content

settings global field flag in module


benbyf
 Share

Recommended Posts

How does one set a new field's global flag in a module?

i.e.

// create new field object
$f = new Field();
// get a field type
$f->type = $this->modules->get("FieldtypeCheckbox");
$f->name = $this->fieldName;
$f->label = 'Publish Page later';

// somehow set flag to global???

$f->save(); // save the field

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...