Jump to content
Sign in to follow this  
Greg Lumley

Related to nothing in particular ...

Recommended Posts

I was going through the Hanna Code "Readme" in Bitpoet's editorial blog based off  kongondo's Blog module and this particular line caught my attention:
 

        $f = $modules->InputfieldCheckboxes;
        $f->name = 'vegetables'; // Set name to match attribute
        $f->id = 'vegetables'; // Set id to match attribute
        $f->label = 'Vegetables';
        $f->description = 'Please select some vegetables.';
        $f->notes = "If you don't eat your vegetables you can't have any pudding.";//<<<<<<<<<<<<
        $f->addOptions(['Carrot', 'Cabbage', 'Celery'], false);
        $form->add($f);

Very funny... 😁

  • Like 2
  • Haha 4

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...