Index: trunk/extensions/SemanticForms/includes/SF_FormLinker.php |
— | — | @@ -311,6 +311,14 @@ |
312 | 312 | $default_forms = array(); |
313 | 313 | $categories = SFUtils::getCategoriesForPage( $title ); |
314 | 314 | foreach ( $categories as $category ) { |
| 315 | + // Check the Page Schema, if one exists. |
| 316 | + $psSchema = new PSSchema( $category ); |
| 317 | + if ( $psSchema->isPSDefined() ) { |
| 318 | + $formName = SFPageSchemas::getFormName( $psSchema ); |
| 319 | + if ( !is_null( $formName ) ) { |
| 320 | + $default_forms[] = $formName; |
| 321 | + } |
| 322 | + } |
315 | 323 | $default_forms = array_merge( $default_forms, self::getFormsThatPagePointsTo( $category, NS_CATEGORY, self::DEFAULT_FORM ) ); |
316 | 324 | } |
317 | 325 | if ( count( $default_forms ) > 0 ) { |