The page you are looking at now is at this URL: http://pastoid.com/bqh
This paste was last updated on July 22, 2009 at 1:24 am.
/** * Modify publish form. Add the extra fields */ public function action_form_publish($form, $post, $context) { $props = explode(',', Options::get( 'postprops__extrafields' )); if (count($props) == 0) { return; /* no fields to make */ } $props = array_map('trim', $props); $props = array_map('ucwords', $props); $propsNoSpace = array_map(create_function('$text', 'return preg_replace("/\s+/", "", $text);'), $props); $form->insert('tags', 'checkboxes', 'postprops', 'null:null', _t('Content Properties'), 'formcontrol_checkboxes'); $form->postprops->options = array_combine($propsNoSpace, $props); $form->postprops->value = $post->info->cssalts; } /** * Save our data to the database */ public function action_publish_post( $post, $form ) { $post->info->postprops = $form->postprops->value; }
| Referring Domain | Hits |
|---|---|
| Unknown Referer | 127 |
| pastoid.com | 5 |
Tip: Use Pastoid to shorten URLs with this bookmarklet: Pastoid This