Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

added filter to for stylesheet call #76

Merged
merged 1 commit into from

2 participants

@mikevanwinkle

Because the stylesheet is called so late it's impossible to override without creating a second stylesheet a calling it on one of the pre_form hooks.

@sc0ttkclark sc0ttkclark merged commit a99d11e into pods-framework:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 7, 2011
  1. @mikevanwinkle
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/input_form.php
View
4 ui/input_form.php
@@ -9,7 +9,7 @@
if (!wp_script_is('pods-ui', 'queue') && !wp_script_is('pods-ui', 'to_do') && !wp_script_is('pods-ui', 'done'))
wp_print_scripts('pods-ui');
?>
-<link rel="stylesheet" type="text/css" href="<?php echo PODS_URL; ?>/ui/style.css" />
+<link rel="stylesheet" type="text/css" href="<?php echo apply_filters('pods_form_stylesheet_url', PODS_URL.'/ui/style.css'); ?>" />
<script type="text/javascript">
var active_file;
@@ -153,4 +153,4 @@ function fileBrowser() {
<?php
//post-form hooks
do_action('pods_post_form',$form_count,$this);
-do_action("pods_post_form_{$this->datatype}",$form_count,$this);
+do_action("pods_post_form_{$this->datatype}",$form_count,$this);
Something went wrong with that request. Please try again.