Task description:
Background
The Style Guide module for Drupal provides a visual testing page for Drupal themes. Quickly compare the display of common elements across installed Drupal themes, and verify that selected themes addresses all common style elements.
Be sure to use the latest version of HEAD, which incorporates the changes in #949070: Create plugins for Style Guide module [Task 1].
Preparation
-- Download and install Drupal 7.
-- Visit the 'Appearance' page in the administration interface to find the Style Guide links.
New plugins
Using the API (styleguide.api.php, in the module download), create a patch to styleguide.styleguide.inc or a custom module include that adds preview elements only when optional core modules are enabled:
[Task 3: 4 hrs]
-- Profile (4 hrs)
--- theme_profile_listing()
-- theme_user_picture() (2 hrs)
-- theme_user_profile() (2 hrs)
Deliverables:
-- Patch(es) to include the desired features to the Style Guide module.
Resources:
Style Guide module: Style guide module
Primary contact:
Estimated time: 4 hours
Comment | File | Size | Author |
---|---|---|---|
#1 | 989066.patch | 2.8 KB | chalet16 |
Comments
Comment #1
chalet16 CreditAttribution: chalet16 commentedPatch
Comment #2
cwgordon7 CreditAttribution: cwgordon7 commentedComment #3
dawehnerManual testing worked fine. Code looks fine, too.
Comment #4
agentrickardI had no idea that Profile module was deprecated. That's a nice solution.
Can we set a dummy user pic for the purpose of this test?
Comment #5
chalet16 CreditAttribution: chalet16 commented1) Profile module had been replaced with field module. I think.
2) OK. I think I have an idea to do this.
Comment #6
agentrickardI think you can just pass in one of the sample images if no image is set.