'fieldset', '#title' => t('Allowing users to select a theme for all content they create'), '#collapsible' => TRUE, '#collapsed' => TRUE, ); $form['themekey_help_tutorials']['Allowing users to select a theme for all content they create']['author'] = array( '#type' => 'item', '#title' => t('Author'), '#value' => l(t('!path', array('!path' => 'Sansui')), 'http://drupal.org/user/297165'), ); $img_path = base_path() . drupal_get_path('module', 'themekey_ui') . '/img/tutorials/'; $form['themekey_help_tutorials']['Allowing users to select a theme for all content they create']['item'] = array( '#type' => 'item', '#value' => '

' . t('In this tutorial you will learn how to enable users to select a theme for content they create. For example, if you would like each of your bloggers to display their own theme on each of their blog entries, this tutorial will allow you to grant this option.

') . '

' . t('First, you must enable any themes you would like available from under !link (Administer -> Site Building -> Themes)

', array('!link' => l(t('!path', array('!path' => 'admin/build/themes')), 'admin/build/themes'))) . '

' . t('Once you have enabled your themes, navigate to !link (Administer -> Site Configuration -> Themekey -> Settings -> User Interface). You will see a checkbox for "Show theme option in user profile". Click on the checkbox and save your settings.

', array('!link' => l(t('!path', array('!path' => 'admin/settings/themekey/settings/ui')), 'admin/settings/themekey/settings/ui'))) . '

' . '' . t('Enabling theme selection in user profiles') . '

' . '

' . t('Next, you must grant permission to the roles that you would like to be able to change themes for their own content. Navigate to !link (Administer -> User Management -> Permissions) and check the boxes for "Assign theme to own nodes" to all roles you want to enable this option.

', array('!link' => l(t('!path', array('!path' => 'admin/user/permissions')), 'admin/user/permissions'))) . '
' . '

' . '' . t('Enable correct permissions to use themekey for your users') . '

' . '

' . t('Once you have done this, your users can log in, navigate to My Account -> Edit and a new option will appear under their account settings. A full select list of your enabled themes will appear for them to select from. Once they have chosen a new theme, any node that is authored by this user will display the theme they have selected.

') . '

' . '' . t('ThemeKey rule chain that switches to different themes on content creation forms for different user roles') . '

' . '

' . t('Have Fun!') . '

', ); $form['themekey_help_tutorials']['Allowing users to select a theme for all content they create']['versions'] = array( '#type' => 'fieldset', '#title' => t('Versions used to create this tutorial'), '#collapsible' => FALSE, ); $form['themekey_help_tutorials']['Allowing users to select a theme for all content they create']['versions']['themekey'] = array( '#type' => 'item', '#title' => t('ThemeKey'), '#value' => '6.x-2.2', ); $form['themekey_help_tutorials']['Allowing users to select a theme for all content they create']['versions']['themekey_ui'] = array( '#type' => 'item', '#title' => t('ThemeKey UI'), '#value' => '6.x-2.2', ); return $form; }