Content.php #1

  • //
  • guest/
  • perforce_software/
  • chronicle/
  • main/
  • sites/
  • all/
  • modules/
  • sharethis/
  • forms/
  • Content.php
  • View
  • Commits
  • Open Download .zip Download (847 B)
<?php
/**
 * A form to control how ShareThis container will behave per-content-entry.
 *
 * @copyright   2012 Perforce Software. All rights reserved.
 * @license     Please see LICENSE.txt in top-level folder of this distribution.
 * @version     <release>/<patch>
 */
class Sharethis_Form_Content extends P4Cms_Form_SubForm
{
    /**
     * Defines the elements of the content sharethis sub-form.
     * Called automatically when the form object is created.
     */
    public function init()
    {
        $this->setLegend('ShareThis');

        $this->addElement(
            'checkbox',
            'showButtons',
            array(
                'label' => 'Show ShareThis Buttons'
            )
        );

        // put the checkbox input before the label
        P4Cms_Form::moveCheckboxLabel($this->getElement('showButtons'));
    }
}
# Change User Description Committed
#1 16170 perforce_software Move Chronicle files to follow new path scheme for branching.
//guest/perforce_software/chronicle/sites/all/modules/sharethis/forms/Content.php
#1 8972 Matt Attaway Initial add of the Chronicle source code