kalamuna / playbox

A playground for ambitious would-be code artists.
http://live-playbox.at.kalamuna.com/
GNU General Public License v2.0
5 stars 29 forks source link

Create playbox admin settings for the admin #81

Closed pirog closed 9 years ago

pirog commented 9 years ago

It is very important that the user be able to enter critical data such as their favorite president and robot.

  1. Create a hook_menu item at /admin/some_smart_path
  2. Hook menu should call a form with drupal_get_form() a structure something like this. Feel free to add additional things if you feel so inclined:
GLOBAL PLAYBOX SETTINGS
form:
who is your favorite president? textfield
who is your favorite boss? textfield
what is your favorite color? dropdown of colors
put the site into "disco mode"? checkbox
brief description of this site: textarea
  1. Create drupal variables for the form to use with variable_get and variable_set. Bonus points for implementing your vars with a .install file.
  2. Set appropriate permissions of the menu item using hook_permission and the access callback and access arguments keys on the menu item.
  3. implement hook_form_alter() to make a trivial change to the form. ie changing the label of one of the text fields.
katypool-zz commented 9 years ago

I did not get as far as I thought I would this week =( Got through the first two though!

kalacommitbot commented 9 years ago

I am actually not getting back till Tuesday so i would try to wrap up next week and then we can meet up and resume the next Monday.

shiny?

On Fri, Dec 19, 2014 at 4:24 PM, katypool notifications@github.com wrote:

I did not get as far as I thought I would this week =( Got through the first two though!

— Reply to this email directly or view it on GitHub https://github.com/kalamuna/playbox/issues/81#issuecomment-67716246.

Cheers,

Mike Pirog Kalamuna www.kalamuna.com

pirog commented 9 years ago

i also have no idea why that came through as the robot and not me ?

katypool-zz commented 9 years ago

Sounds good! Have a good trip back

kalacommitbot commented 9 years ago

Thanks!

Let me know if you've got any questions and we can do a quick refresher before next Monday.

On Sunday, December 28, 2014, katypool notifications@github.com wrote:

Sounds good! Have a good trip back

— Reply to this email directly or view it on GitHub https://github.com/kalamuna/playbox/issues/81#issuecomment-68215593.

Cheers,

Mike Pirog Kalamuna www.kalamuna.com

katypool-zz commented 9 years ago

Somehow missed your message. But I think I got all the steps down so we can go over it Monday. Happy New Year!

pirog commented 9 years ago

@katypool lets def try to get the settings page to show up on /admin/config... maybe in its own section call "playbox". THAT WOULD BE SOOOOOO FUN!

pirog commented 9 years ago

Let's also give this module some wider scope and call it "playbox_admin" so it can control all sorts of SUPER FUN playbox things. Let's also make it into a feature so it is consistent with the other playbox modules.

pirog commented 9 years ago

and! Make a super fun ARRAY of COLOURZ