Created
April 24, 2013 20:55
-
-
Save gwixted/5455492 to your computer and use it in GitHub Desktop.
Drupal Taxonomy Children Selection Rule
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$rst = db_query('SELECT tid FROM taxonomy_term_hierarchy WHERE parent = :tid', array(':tid'=>arg(2))); | |
$result = $rst->rowCount(); | |
if($result > 0){ | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment