Download & Extend

Change defaul align to align right?

Project:Image Assist
Version:6.x-3.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi, any ideas on where I can change this I have looked through the module and can't find where "selected" is?

Comments

#1

Status:active» closed (fixed)

Bah i don't know how I missed it

'#default_value' => variable_get('img_assist_default_alignment', 'left'),

Anyway would be nice if it was a configuration option :)

#2

Version:5.x-1.6» 6.x-3.x-dev
Category:support request» feature request
Status:closed (fixed)» active

It would be nice to add 'img_assist_default_alignment' to the Image property dialog settings. Perhaps there is a reason for that perhaps not.

I have done something like that:

    $form['properties']['img_assist_default_alignment'] = array(
    '#type' => 'select',
    '#title' => t('Default alignment'),
    '#default_value' => variable_get('img_assist_default_alignment', 'left'),
'#options' => array('left' => t('left'), 'right' => t('right'), 'none' => t('none'), 'center' => t('center')),
    '#description' => t('The alignment.'),
  );

for the file img_assist.admin.inc

I don't know if there is initialisation required somewhere. I've just added the variable in the database before :

INSERT INTO `database_name`.`variable` (
`name` ,
`value`
)
VALUES (
'img_assist_default_alignment', 's:4:"none";'
);
AttachmentSize
img_assist.admin_.zip 4.17 KB

#3

A proper patch would likely be accepted.

nobody click here