Пример #1
0
/**
 * Checks if the tabs should be rendered
 */
function platon_display_tabs($node)
{
    $types = array();
    if (module_exists("quiz")) {
        $types = array_keys(_quiz_question_get_implementations());
    }
    $types[] = "notification";
    if (in_array($node->type, $types)) {
        return TRUE;
    }
    return FALSE;
}
Пример #2
0
/**
 * Checks if the tabs should be rendered
 */
function platon_display_tabs($node)
{
    if (module_exists("quiz")) {
        $types = array_keys(_quiz_question_get_implementations());
        if (in_array($node->type, $types)) {
            return true;
        }
    }
    return false;
}