Allow module add custom css to the plugin extension configure page

Bug #1747730 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Robert Lyon

Bug Description

When creating a module with configurable options we need a way to allow the module to add custom css to the plugin config page.

We need to be able to add css either by an external file or <style type="text/css"></style> tag

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/8508

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/8508
Committed: https://git.mahara.org/mahara/mahara/commit/4b3008fbfbb6f1a566c2787cccf2191eaa853b66
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master

commit 4b3008fbfbb6f1a566c2787cccf2191eaa853b66
Author: Robert Lyon <email address hidden>
Date: Wed Feb 7 07:31:58 2018 +1300

Bug 1747730: Allow one to add custom css to plugin extention config page

By adding the get_config_options_css() function, eg in your module:

public static function get_config_options_css() {
return array('<style type="text/css"> .mycustom { color: red; } </style>');
}

behatnotneeded

Change-Id: I0ae9d85fe41e416a8edc60cd40dd4f189aada5cb
Signed-off-by: Robert Lyon <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.