Patch can save others the trouble of understanding what's the class name.

Comments

amitaibu’s picture

btw, won't it be a better practice to use url():

  $form['url'] = array(
    '#type' => 'hidden',
    '#attributes' => array('class' => array('ctools-ajax-sample-button-url')),
    '#value' => url('ctools_ajax_sample/nojs/animal'),
  );

On a site I develop without the url() the url was not correct.

merlinofchaos’s picture

Oh yes, url() probably is necessary at least for the base portion of the URL.

merlinofchaos’s picture

Can you reroll the patch?

amitaibu’s picture

StatusFileSize
new681 bytes

Rerolled.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.