'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'), '#markup' => 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', '#markup' => '
' . 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 -> Appearance)
', array('!link' => l(t('!path', array('!path' => 'admin/appearance')), 'admin/appearance'))) . '' . t('Once you have enabled your themes, navigate to !link (Administer -> 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/config/user-interface/themekey/settings/ui')), 'admin/config/user-interface/themekey/settings/ui'))) . '' . '
' . '' . 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 -> People -> Permissions) and check the boxes for "Assign theme to own nodes" for all roles you want to have this option.
', array('!link' => l(t('!path', array('!path' => 'admin/people/permissions')), 'admin/people/permissions'))) . '' . '
' . '' . 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('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'), '#markup' => '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'), '#markup' => '6.x-2.2', ); return $form; }