i am creating a simple dialog link using following code. i got error with false value(i.e 'resizable' =>false,). it is not genrating proper simple dialog link.

in the LINK its showns rel=resizable:;

$output='';
    $args = array(
    'text' => '<span>'.$text.'<span>',
    'path' => $url,
    'selector' => $selector,
    'title' => $title,
    'options' => array(
      'width' => 530,
      'resizable' =>false,
      'position' => array('top', 200) // can be an array of xy values
    ),
    'class' => array('my-link-class'),
  );
  
  $output =  theme('simple_dialog_link', $args);

i have fixed this problem using following code.

FILE simple_dialog.module
LINE NO 216

         if($value){
            $dialog_options[] = $option_name . ':' . $value;
          }

Replace with

         if($value){
            $dialog_options[] = $option_name . ':' . $value;
          }else{
            $dialog_options[] = $option_name . ':false' ;
          }

Comments

drclaw’s picture

Nice. Thanks for that. I'll add that in there and commit.

drclaw’s picture

Status: Active » Fixed

This has been committed (7.x-1.3). =)

Status: Fixed » Closed (fixed)

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